浏览代码

Don't redefine CJSON_EXPORT_SYMBOLS

Max Bruckner 8 年之前
父节点
当前提交
411c50f671
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cJSON.h

+ 1 - 1
cJSON.h

@@ -104,7 +104,7 @@ then using the CJSON_API_VISIBILITY flag to "export" the same symbols the way CJ
 */
 
 /* export symbols by default, this is necessary for copy pasting the C and header file */
-#if !defined(CJSON_HIDE_SYMBOLS) && !defined(CJSON_IMPORT_SYMBOLS)
+#if !defined(CJSON_HIDE_SYMBOLS) && !defined(CJSON_IMPORT_SYMBOLS) && !defined(CJSON_EXPORT_SYMBOLS)
 #define CJSON_EXPORT_SYMBOLS
 #endif