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