diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tinyxml2/0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch | |
Diffstat (limited to 'vcpkg/ports/tinyxml2/0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch')
| -rw-r--r-- | vcpkg/ports/tinyxml2/0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/tinyxml2/0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch b/vcpkg/ports/tinyxml2/0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch new file mode 100644 index 0000000..7f2f750 --- /dev/null +++ b/vcpkg/ports/tinyxml2/0002-fix-check-for-TINYXML2_EXPORT-on-non-windows.patch @@ -0,0 +1,25 @@ +From 4beabf9fe05a049577e3923327804851d6a05f24 Mon Sep 17 00:00:00 2001 +From: Amin Yahyaabadi <aminyahyaabadi74@gmail.com> +Date: Thu, 27 Oct 2022 19:06:52 -0700 +Subject: [PATCH] fix: check for TINYXML2_EXPORT on non windows + +--- + tinyxml2.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tinyxml2.h b/tinyxml2.h +index cfb1053..5a36901 100755 +--- a/tinyxml2.h ++++ b/tinyxml2.h +@@ -72,7 +72,7 @@ distribution. + # else
+ # define TINYXML2_LIB
+ # endif
+-#elif __GNUC__ >= 4
++#elif defined(TINYXML2_EXPORT) && __GNUC__ >= 4
+ # define TINYXML2_LIB __attribute__((visibility("default")))
+ #else
+ # define TINYXML2_LIB
+-- +2.37.3.windows.1 + |