Google Groups

Re: Issue 351 in protobuf: Make protobuf_lite proto files not create any static initializers


prot...@googlecode.com Feb 6, 2012 11:13 AM
Posted in group: Protocol Buffers

Comment #6 on issue 351 by ev...@chromium.org: Make protobuf_lite proto  
files not create any static initializers
http://code.google.com/p/protobuf/issues/detail?id=351

http://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/stubs/once.h

#define GOOGLE_PROTOBUF_DECLARE_ONCE(NAME)                    \
   ::google::protobuf::ProtobufOnceType NAME

and

struct LIBPROTOBUF_EXPORT ProtobufOnceType {
   ProtobufOnceType();