diff options
author | Nikias Bassen | 2024-01-29 05:41:49 +0100 |
---|---|---|
committer | Nikias Bassen | 2024-01-29 05:41:49 +0100 |
commit | fec1d79ee5ff7def2d2208767fb31ce5978f587c (patch) | |
tree | 0778aa7547c5854bbe9cd493a13f6b77adbb5306 /src/libirecovery.c | |
parent | 4fa49416d47076a026d7d2858dbe2002aaa1537f (diff) | |
download | libirecovery-fec1d79ee5ff7def2d2208767fb31ce5978f587c.tar.gz libirecovery-fec1d79ee5ff7def2d2208767fb31ce5978f587c.tar.bz2 |
Fix IRECV_API definitions
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 9742cb5..e38cdd6 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -57,6 +57,18 @@ #endif #endif +#ifdef IRECV_STATIC + #define IRECV_API +#elif defined(_WIN32) + #define IRECV_API __declspec( dllexport ) +#else + #if __GNUC__ >= 4 + #define IRECV_API __attribute__((visibility("default"))) + #else + #define IRECV_API + #endif +#endif + #include "libirecovery.h" struct irecv_client_private { |