mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-08 14:33:43 +00:00
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:
parent
5bdc75633d
commit
80e8668e6f
1 changed files with 1 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue