]> granicus.if.org Git - libexpat/commitdiff
Prevent XML_UNICODE being redefined
authorRhodri James <rhodri@kynesim.co.uk>
Fri, 4 Aug 2017 16:06:44 +0000 (17:06 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 29 Aug 2017 20:30:32 +0000 (22:30 +0200)
expat/lib/expat_external.h

index 055be1b328199edd05933a6b4237637d4ab26d74..bf99303cef8e963a3efed1f273c531b77276dfc6 100644 (file)
@@ -121,7 +121,9 @@ extern "C" {
 #endif
 
 #ifdef XML_UNICODE_WCHAR_T
-# define XML_UNICODE
+# ifndef XML_UNICODE
+#   define XML_UNICODE
+# endif
 # if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
 #  error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
 # endif