| --- pupnp-release-1.6.25/upnp/inc/UpnpGlobal.h.orig 2018-02-10 17:27:26.000000000 +0300 |
| +++ pupnp-release-1.6.25/upnp/inc/UpnpGlobal.h 2018-05-30 15:14:36.632385000 +0300 |
| @@ -19,10 +19,11 @@ |
| /* |
| * EXPORT_SPEC |
| */ |
| + #ifdef _MSC_VER |
| #ifdef UPNP_STATIC_LIB |
| #define EXPORT_SPEC |
| #else /* UPNP_STATIC_LIB */ |
| - #ifdef LIBUPNP_EXPORTS |
| + #if defined(LIBUPNP_EXPORTS) /*|| defined(DLL_EXPORT)*/ |
| /*! set up declspec for dll export to make functions |
| * visible to library users */ |
| #define EXPORT_SPEC __declspec(dllexport) |
| @@ -30,6 +31,9 @@ |
| #define EXPORT_SPEC __declspec(dllimport) |
| #endif /* LIBUPNP_EXPORTS */ |
| #endif /* UPNP_STATIC_LIB */ |
| + #else |
| + #define EXPORT_SPEC |
| + #endif |
| |
| /* |
| * UPNP_INLINE |