]> granicus.if.org Git - libexpat/commitdiff
Switch to testing that _MSC_EXTENSIONS is defined, not __declspec. (We can
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Mon, 30 Jul 2001 19:01:47 +0000 (19:01 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Mon, 30 Jul 2001 19:01:47 +0000 (19:01 +0000)
probably remove the exception for __BEOS__ now, but I cannot test that.)

expat/lib/expat.h.in

index 7c928b1aa85e4998ff005ec3ba17f7fb118aa0ab..bbbf792d3a065a4a43b29ec44d32a49fc6b17525 100644 (file)
@@ -9,7 +9,7 @@ See the file COPYING for copying permission.
 #include <stdlib.h>
 
 #ifndef XMLPARSEAPI
-#  if defined(__declspec) && !defined(__BEOS__)
+#  if defined(_MSC_EXTENSIONS) && !defined(__BEOS__)
 #    define XMLPARSEAPI(type) __declspec(dllimport) type __cdecl
 #  else
 #    define XMLPARSEAPI(type) type