protobuf-c.h: Fix Windows DLL export (Fixes #331)

protobuf_c_empty_string is used in generated .pb-c.{c,h} files so it
should be exported properly.
This commit is contained in:
Ilya Lipnitskiy 2019-05-20 10:44:35 -07:00
parent 39cd58f5ff
commit 4c8043d026

View File

@ -238,7 +238,7 @@ PROTOBUF_C__BEGIN_DECLS
#define PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC 0x114315af #define PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC 0x114315af
/* Empty string used for initializers */ /* Empty string used for initializers */
extern const char protobuf_c_empty_string[]; PROTOBUF_C__API extern const char protobuf_c_empty_string[];
/** /**
* \defgroup api Public API * \defgroup api Public API