GH56: Need a way to disable *_API macros with GCC

GH #56: Need a way to disable *_API macros with GCC
This commit is contained in:
aleks-f 2013-01-13 10:31:21 -06:00
parent 5d6afa983e
commit 76a7e2e716
14 changed files with 14 additions and 36 deletions

View File

@ -90,7 +90,7 @@ enum RSAPaddingMode
#if !defined(Crypto_API) #if !defined(Crypto_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Crypto_API __attribute__ ((visibility ("default"))) #define Crypto_API __attribute__ ((visibility ("default")))
#else #else
#define Crypto_API #define Crypto_API

View File

@ -61,7 +61,7 @@
#if !defined(MySQL_API) #if !defined(MySQL_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define MySQL_API __attribute__ ((visibility ("default"))) #define MySQL_API __attribute__ ((visibility ("default")))
#else #else
#define MySQL_API #define MySQL_API

View File

@ -66,7 +66,7 @@
#if !defined(ODBC_API) #if !defined(ODBC_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define ODBC_API __attribute__ ((visibility ("default"))) #define ODBC_API __attribute__ ((visibility ("default")))
#else #else
#define ODBC_API #define ODBC_API

View File

@ -63,7 +63,7 @@
#if !defined(SQLite_API) #if !defined(SQLite_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define SQLite_API __attribute__ ((visibility ("default"))) #define SQLite_API __attribute__ ((visibility ("default")))
#else #else
#define SQLite_API #define SQLite_API

View File

@ -63,7 +63,7 @@
#if !defined(Data_API) #if !defined(Data_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Data_API __attribute__ ((visibility ("default"))) #define Data_API __attribute__ ((visibility ("default")))
#else #else
#define Data_API #define Data_API

View File

@ -76,7 +76,7 @@
#if !defined(Foundation_API) #if !defined(Foundation_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Foundation_API __attribute__ ((visibility ("default"))) #define Foundation_API __attribute__ ((visibility ("default")))
#else #else
#define Foundation_API #define Foundation_API

View File

@ -63,7 +63,7 @@
#if !defined(JSON_API) #if !defined(JSON_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define JSON_API __attribute__ ((visibility ("default"))) #define JSON_API __attribute__ ((visibility ("default")))
#else #else
#define JSON_API #define JSON_API

View File

@ -63,7 +63,7 @@
#if !defined(Net_API) #if !defined(Net_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Net_API __attribute__ ((visibility ("default"))) #define Net_API __attribute__ ((visibility ("default")))
#else #else
#define Net_API #define Net_API

View File

@ -63,7 +63,7 @@
#if !defined(NetSSL_API) #if !defined(NetSSL_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define NetSSL_API __attribute__ ((visibility ("default"))) #define NetSSL_API __attribute__ ((visibility ("default")))
#else #else
#define NetSSL_API #define NetSSL_API

View File

@ -35,18 +35,7 @@
-D_DEBUG, -D_DEBUG,
-E, -E,
-C, -C,
-DFoundation_API=, -DPOCO_NO_GCC_API_ATTRIBUTE
-DXML_API=,
-DJSON_API=,
-DUtil_API=,
-DNet_API=,
-DCrypto_API=,
-DNetSSL_API=,
-DZip_API=,
-DData_API=,
-DSQLite_API=,
-DMySQL_API=,
-DODBC_API=
</options> </options>
<path></path> <path></path>
<usePipe>true</usePipe> <usePipe>true</usePipe>

View File

@ -37,18 +37,7 @@
-D_DEBUG, -D_DEBUG,
-E, -E,
-C, -C,
-DFoundation_API=, -DPOCO_NO_GCC_API_ATTRIBUTE
-DXML_API=,
-DJSON_API=,
-DUtil_API=,
-DNet_API=,
-DCrypto_API=,
-DNetSSL_API=,
-DZip_API=,
-DData_API=,
-DSQLite_API=,
-DMySQL_API=,
-DODBC_API=
</options> </options>
<path></path> <path></path>
<usePipe>true</usePipe> <usePipe>true</usePipe>

View File

@ -63,7 +63,7 @@
#if !defined(Util_API) #if !defined(Util_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Util_API __attribute__ ((visibility ("default"))) #define Util_API __attribute__ ((visibility ("default")))
#else #else
#define Util_API #define Util_API

View File

@ -63,7 +63,7 @@
#if !defined(XML_API) #if !defined(XML_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define XML_API __attribute__ ((visibility ("default"))) #define XML_API __attribute__ ((visibility ("default")))
#else #else
#define XML_API #define XML_API

View File

@ -63,7 +63,7 @@
#if !defined(Zip_API) #if !defined(Zip_API)
#if defined (__GNUC__) && (__GNUC__ >= 4) #if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Zip_API __attribute__ ((visibility ("default"))) #define Zip_API __attribute__ ((visibility ("default")))
#else #else
#define Zip_API #define Zip_API