GH #26: Cannot compile on gcc

GH #26: Cannot compile on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 using
compiler flag pedantic
This commit is contained in:
aleks-f 2012-12-12 23:02:20 -06:00
parent aab3b51f62
commit ef9cda6666
14 changed files with 70 additions and 14 deletions

View File

@ -37,7 +37,11 @@
#if !defined(CppUnit_API)
#define CppUnit_API
#if defined (__GNUC__) && (__GNUC__ >= 4)
#define CppUnit_API __attribute__ ((visibility ("default")))
#else
#define CppUnit_API
#endif
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -72,7 +72,11 @@
#if !defined(PDF_API)
#define PDF_API
#if defined (__GNUC__) && (__GNUC__ >= 4)
#define PDF_API __attribute__ ((visibility ("default")))
#else
#define PDF_API
#endif
#endif

View File

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

View File

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

View File

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