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.
This commit is contained in:
Fred L. Drake, Jr. 2003-10-16 04:20:54 +00:00
parent 5bdc75633d
commit 80e8668e6f

View file

@ -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