Define XML_STATIC in Expat header rather than Expat projects.

This defines XML_STATIC unconditionally in Expat sources themselves as the built-in Expat is always used as a static library, so this solution is simpler and more portable.
This commit is contained in:
Cătălin Răceanu
2017-07-17 02:54:13 +03:00
parent 791fa1050d
commit 5e9d9dc2f9

View File

@@ -5,6 +5,13 @@
#ifndef Expat_External_INCLUDED #ifndef Expat_External_INCLUDED
#define Expat_External_INCLUDED 1 #define Expat_External_INCLUDED 1
/* wxWidgets modification: always predefine XML_STATIC as we always use
Expat as a static library.
*/
#ifndef XML_STATIC
#define XML_STATIC
#endif
/* External API definitions */ /* External API definitions */
#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__) #if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)