]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libplist/dllexport.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / libplist / dllexport.patch
CommitLineData
1e59de90
TL
1diff --git a/include/plist/plist.h b/include/plist/plist.h\r
2index 2863c74..9cdb219 100644\r
3--- a/include/plist/plist.h\r
4+++ b/include/plist/plist.h\r
5@@ -42,7 +42,7 @@ extern "C"\r
6 #include <stdint.h>\r
7 #endif\r
8 \r
9-#ifdef _MSC_VER \r
10+#if defined(_MSC_VER) && defined(LIBPLIST_EXPORTS)\r
11 #define PLIST_API_MSC __declspec( dllexport ) \r
12 #else \r
13 #define PLIST_API_MSC \r
14diff --git a/src/plist.h b/src/plist.h\r
15index 1e5d0d1..6690343 100644\r
16--- a/src/plist.h\r
17+++ b/src/plist.h\r
18@@ -39,10 +39,7 @@\r
19 #include <sys/time.h>\r
20 #endif\r
21 \r
22-#ifdef _MSC_VER\r
23- #define PLIST_API __declspec( dllexport )\r
24-#else\r
25-#ifdef WIN32\r
26+#if (defined(_MSC_VER) || defined(WIN32)) && defined(LIBPLIST_EXPORTS)\r
27 #define PLIST_API __declspec( dllexport )\r
28 #else\r
29 #ifdef HAVE_FVISIBILITY\r
30@@ -51,7 +48,6 @@\r
31 #define PLIST_API\r
32 #endif\r
33 #endif\r
34-#endif\r
35 \r
36 struct plist_data_s\r
37 {\r