浏览代码

Enable export only for windows

Kim Kulling 5 年之前
父节点
当前提交
9303fb31f6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      contrib/pugixml/src/pugiconfig.hpp

+ 2 - 0
contrib/pugixml/src/pugiconfig.hpp

@@ -30,8 +30,10 @@
 // #define PUGIXML_NO_EXCEPTIONS
 
 // Set this to control attributes for public classes/functions, i.e.:
+#ifdef _WIN32
 #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
 #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
+#endif
 // #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
 // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead