[Expat-checkins] expat/lib expat.h,1.56,1.57

Fred L. Drake fdrake at users.sourceforge.net
Thu Oct 16 00:20:57 EDT 2003


Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv29869

Modified Files:
	expat.h 
Log Message:
Remove the __attribute__((dllimport)) and __attribute__((dllexport))
declarations; these are needed only on an obscure platform (Windows NT
on PowerPC using GCC), and were never in previous releases of Expat.
They caused way too many spurious warnings on several platforms where
they aren't actually needed but should be ignored silently.
Removing these cannot break working code.


Index: expat.h
===================================================================
RCS file: /cvsroot/expat/expat/lib/expat.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- expat.h	15 Oct 2003 20:51:28 -0000	1.56
+++ expat.h	16 Oct 2003 04:20:54 -0000	1.57
@@ -64,24 +64,11 @@
 
 
 #if !defined(XML_STATIC) && !defined(XMLIMPORT)
-#ifdef XML_BUILDING_EXPAT
-/* we're actually building Expat itself */
-
-#if defined(__GNUC__)
-/* needed in a very obscure case according the the GCC documentation
-   (Windows NT on PowerPC) */
-#define XMLIMPORT __attribute__((dllexport))
-#endif
-
-#else
+#ifndef XML_BUILDING_EXPAT
 /* using Expat from an application */
 
 #ifdef XML_USE_MSC_EXTENSIONS
 #define XMLIMPORT __declspec(dllimport)
-#elif defined(__GNUC__)
-/* needed in a very obscure case according the the GCC documentation
-   (Windows NT on PowerPC) */
-#define XMLIMPORT __attribute__((dllimport))
 #endif
 
 #endif





More information about the Expat-checkins mailing list