summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2025-03-12 17:23:33 +1100
committer Vas Crabb <vas@vastheman.com>2025-03-12 17:23:33 +1100
commit288839a39514c5fa8d105655fa7c11bd6ca0de03 (patch)
tree63cddc1c8579091287a2821c24e2f0ab8ef3c874 /scripts
parentd69383bfb699daace0b565aa0ecdecdf39a119d1 (diff)
3rdparty/expat: Updated to expat 2.6.4.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/src/3rdparty.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index 492f01faabe..2d0ef4c7694 100755
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -22,8 +22,10 @@ project "expat"
-- fake out the enough of expat_config.h to get by
-- could possibly add more defines here for specific targets
defines {
+ "HAVE_CXX11",
"HAVE_MEMMOVE",
"HAVE_STDINT_H",
+ "HAVE_STDIO_H",
"HAVE_STDLIB_H",
"HAVE_STRING_H",
"PACKAGE=\"expat\"",
@@ -37,6 +39,7 @@ project "expat"
"VERSION=\"2.2.10\"",
"XML_CONTEXT_BYTES=1024",
"XML_DTD",
+ "XML_GE=1",
"XML_NS",
}
if _OPTIONS["BIGENDIAN"]=="1" then
@@ -49,6 +52,11 @@ else
"BYTEORDER=1234",
}
end
+if _OPTIONS["targetos"]=="windows" then
+ defines {
+ "__USE_MINGW_ANSI_STDIO=0",
+ }
+end
if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="freebsd" then
defines {
"HAVE_ARC4RANDOM",
@@ -88,7 +96,7 @@ if _OPTIONS["gcc"]~=nil then
else
buildoptions_c {
- "-Wno-maybe-uninitialized", -- expat in GCC 11.1
+ "-Wno-error=maybe-uninitialized", -- expat in GCC 11.1
}
end
end