I believe that protobuf have this defenition of types (for 32bit build):
typedef int32 Atomic32;
typedef int64 Atomic64;
typedef intptr_t AtomicWord;
typedef internal::AtomicWord ProtobufOnceType;
AtomicWord should be same as Atomic32, so if you say that intptr_t still
remains 32bit integer then easiest fix will be:
Change in atomicops.h defenition of AtomicWord to:
#ifdef EMSCRIPTEN
typedef Atomic32 AtomicWord;
#else
typedef intptr_t AtomicWord;
#endif
This will not be safe if "things" are changed. If I force protobuf to 64bit,
error still there because Atomic64 will be long long, but intptr_t
long. Probably it's
better to compile with -DGOOGLE_PROTOBUF_NO_THREAD_SAFETY, but I never
have success
to building it with that flag.
Anyway now it works.
пт, 27 июл. 2018 г. в 10:58, Александр Гурьянов <
caii...@gmail.com>: