diff options
Diffstat (limited to 'src/devicedb.c')
| -rw-r--r-- | src/devicedb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devicedb.c b/src/devicedb.c index 36936c4..15c1112 100644 --- a/src/devicedb.c +++ b/src/devicedb.c @@ -51,7 +51,11 @@ #ifdef IRECV_STATIC #define IRECV_API #elif defined(_WIN32) - #define IRECV_API __declspec( dllexport ) + #ifdef DLL_EXPORT + #define IRECV_API __declspec( dllexport ) + #else + #define IRECV_API + #endif #else #if __GNUC__ >= 4 #define IRECV_API __attribute__((visibility("default"))) |
