]> granicus.if.org Git - libexpat/commitdiff
expat_external.h: Inline remains of XML_USE_MSC_EXTENSIONS
authorSebastian Pipping <sebastian@pipping.org>
Thu, 29 Aug 2019 17:25:51 +0000 (19:25 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Thu, 29 Aug 2019 17:49:56 +0000 (19:49 +0200)
expat/lib/expat_external.h

index 11f49a75ef05987080b3d3e15511e6f44220d8a5..b3b6e74d9d201ce6b1641a0b8fbb1ba9bfd42996 100644 (file)
 
 /* External API definitions */
 
-#if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
-#  define XML_USE_MSC_EXTENSIONS 1
-#endif
-
 /* Expat tries very hard to make the API boundary very specifically
    defined.  There are two macros defined to control this boundary;
    each of these can be defined before including this header to
@@ -85,7 +81,7 @@
 #  ifndef XML_BUILDING_EXPAT
 /* using Expat from an application */
 
-#    ifdef XML_USE_MSC_EXTENSIONS
+#    if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
 #      define XMLIMPORT __declspec(dllimport)
 #    endif