Parcourir la source

fix compiler detection

谭九鼎 il y a 2 ans
Parent
commit
cc4c1df7ec
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

@@ -64,7 +64,7 @@ distribution.
 #   pragma warning(disable: 4251)
 #endif
 
-#ifdef _WIN32
+#ifdef _MSC_VER
 #   ifdef TINYXML2_EXPORT
 #       define TINYXML2_LIB __declspec(dllexport)
 #   elif defined(TINYXML2_IMPORT)