mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 14:29:06 +08:00
813af6ac29
* [tinyxml2]: do not force export the symbols when building statically https://github.com/leethomason/tinyxml2/pull/922 * [tinyxml2]: check for TINYXML2_EXPORT on non windows * [tinyxml2] avoid redefinition of TINYXML2_LIB
26 lines
674 B
Diff
26 lines
674 B
Diff
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
|
|
|