From 4c8043d02659d18937447d53b38e6bb029cf8e62 Mon Sep 17 00:00:00 2001 From: Ilya Lipnitskiy Date: Mon, 20 May 2019 10:44:35 -0700 Subject: [PATCH] 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. --- protobuf-c/protobuf-c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobuf-c/protobuf-c.h b/protobuf-c/protobuf-c.h index da6cf67..ddd7cbd 100755 --- a/protobuf-c/protobuf-c.h +++ b/protobuf-c/protobuf-c.h @@ -238,7 +238,7 @@ PROTOBUF_C__BEGIN_DECLS #define PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC 0x114315af /* 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