diff options
author | Anatol Belski <ab@php.net> | 2014-09-23 01:22:58 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-23 01:22:58 +0200 |
commit | bec9fd79175758129bc95ff38aafb0a39f16c401 (patch) | |
tree | 75d18b46d811daa7f95b2bc58086b3418f02dcba /TSRM | |
parent | 7099736dfae324660eff5b1fe5d29b55df6a8260 (diff) | |
download | php-git-bec9fd79175758129bc95ff38aafb0a39f16c401.tar.gz |
define explicit export/impot spec
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/TSRM.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index 765d5d44a0..de211ad075 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -21,18 +21,21 @@ #endif #ifdef TSRM_WIN32 +# define TSRM_EXP_API __declspec(dllexport) +# define TSRM_IMP_API __declspec(dllimport) # ifdef TSRM_EXPORTS # define TSRM_API __declspec(dllexport) # else # define TSRM_API __declspec(dllimport) # endif -# define TSRM_EXP_API __declspec(dllexport) #elif defined(__GNUC__) && __GNUC__ >= 4 # define TSRM_API __attribute__ ((visibility("default"))) # define TSRM_EXP_API TSRM_API +# define TSRM_IMP_API TSRM_API #else # define TSRM_API # define TSRM_EXP_API +# define TSRM_IMP_API #endif #ifdef _WIN64 |