summaryrefslogtreecommitdiffstats
path: root/include/libirecovery.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-01-29 05:41:49 +0100
committerGravatar Nikias Bassen2024-01-29 05:41:49 +0100
commitfec1d79ee5ff7def2d2208767fb31ce5978f587c (patch)
tree0778aa7547c5854bbe9cd493a13f6b77adbb5306 /include/libirecovery.h
parent4fa49416d47076a026d7d2858dbe2002aaa1537f (diff)
downloadlibirecovery-fec1d79ee5ff7def2d2208767fb31ce5978f587c.tar.gz
libirecovery-fec1d79ee5ff7def2d2208767fb31ce5978f587c.tar.bz2
Fix IRECV_API definitions
Diffstat (limited to 'include/libirecovery.h')
-rw-r--r--include/libirecovery.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h
index 9909f04..f6b9971 100644
--- a/include/libirecovery.h
+++ b/include/libirecovery.h
@@ -27,17 +27,11 @@ extern "C" {
#include <stdint.h>
-#ifdef IRECV_STATIC
- #define IRECV_API
-#elif defined(_WIN32)
- #ifdef DLL_EXPORT
- #define IRECV_API __declspec(dllexport)
- #else
+#ifndef IRECV_API
+ #ifdef IRECV_STATIC
+ #define IRECV_API
+ #elif defined(_WIN32)
#define IRECV_API __declspec(dllimport)
- #endif
-#else
- #if __GNUC__ >= 4
- #define IRECV_API __attribute__((visibility("default")))
#else
#define IRECV_API
#endif