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 (__GNUC__) && (__GNUC__ >= 4)
#if !defined(POCO_NO_GCC_API_ATTRIBUTE) && defined (__GNUC__) && (__GNUC__ >= 4)
#define Crypto_API __attribute__ ((visibility ("default")))
#else
#define Crypto_API

View File

@ -61,7 +61,7 @@
#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")))
#else
#define MySQL_API

View File

@ -66,7 +66,7 @@
#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")))
#else
#define ODBC_API

View File

@ -63,7 +63,7 @@
#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")))
#else
#define SQLite_API

View File

@ -63,7 +63,7 @@
#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")))
#else
#define Data_API

View File

@ -76,7 +76,7 @@
#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")))
#else
#define Foundation_API

View File

@ -63,7 +63,7 @@
#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")))
#else
#define JSON_API

View File

@ -63,7 +63,7 @@
#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")))
#else
#define Net_API

View File

@ -63,7 +63,7 @@
#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")))
#else
#define NetSSL_API

View File

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

View File

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

View File

@ -63,7 +63,7 @@
#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")))
#else
#define Util_API

View File

@ -63,7 +63,7 @@
#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")))
#else
#define XML_API

View File

@ -63,7 +63,7 @@
#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")))
#else
#define Zip_API