diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/elementary/Elementary.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/elementary/Elementary.h b/src/lib/elementary/Elementary.h index 9cfd3adaeb..3913084bf3 100644 --- a/src/lib/elementary/Elementary.h +++ b/src/lib/elementary/Elementary.h | |||
@@ -85,6 +85,7 @@ | |||
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | #ifdef _WIN32 | 87 | #ifdef _WIN32 |
88 | # define EAPI_MAIN | ||
88 | # ifdef ELEMENTARY_BUILD | 89 | # ifdef ELEMENTARY_BUILD |
89 | # ifdef DLL_EXPORT | 90 | # ifdef DLL_EXPORT |
90 | # define EAPI __declspec(dllexport) | 91 | # define EAPI __declspec(dllexport) |
@@ -98,20 +99,17 @@ | |||
98 | # ifdef __GNUC__ | 99 | # ifdef __GNUC__ |
99 | # if __GNUC__ >= 4 | 100 | # if __GNUC__ >= 4 |
100 | # define EAPI __attribute__ ((visibility("default"))) | 101 | # define EAPI __attribute__ ((visibility("default"))) |
102 | # define EAPI_MAIN __attribute__ ((visibility("default"))) | ||
101 | # else | 103 | # else |
102 | # define EAPI | 104 | # define EAPI |
105 | # define EAPI_MAIN | ||
103 | # endif | 106 | # endif |
104 | # else | 107 | # else |
105 | # define EAPI | 108 | # define EAPI |
109 | # define EAPI_MAIN | ||
106 | # endif | 110 | # endif |
107 | #endif /* ! _WIN32 */ | 111 | #endif /* ! _WIN32 */ |
108 | 112 | ||
109 | #ifdef _WIN32 | ||
110 | # define EAPI_MAIN | ||
111 | #else | ||
112 | # define EAPI_MAIN EAPI | ||
113 | #endif | ||
114 | |||
115 | /* allow usage from c++ */ | 113 | /* allow usage from c++ */ |
116 | #ifdef __cplusplus | 114 | #ifdef __cplusplus |
117 | extern "C" | 115 | extern "C" |