[Pcsclite-cvs-commit] r2188 - trunk/PCSC/src
Ludovic Rousseau
rousseau at costa.debian.org
Thu Oct 19 11:29:29 UTC 2006
Author: rousseau
Date: 2006-10-19 11:29:29 +0000 (Thu, 19 Oct 2006)
New Revision: 2188
Modified:
trunk/PCSC/src/misc.h
Log:
do not use visibility("default") for gcc versions <= 3.3
Thanks to Hemanth Kumar for the bug report and Karsten Ohme for the
patch
Modified: trunk/PCSC/src/misc.h
===================================================================
--- trunk/PCSC/src/misc.h 2006-10-19 11:27:53 UTC (rev 2187)
+++ trunk/PCSC/src/misc.h 2006-10-19 11:29:29 UTC (rev 2188)
@@ -24,7 +24,7 @@
* see http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Function-Attributes.html#Function-Attributes
* see http://www.nedprod.com/programs/gccvisibility.html
*/
-#if defined __GNUC__
+#if defined __GNUC__ && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
#define INTERNAL __attribute__ ((visibility("hidden")))
#define PCSC_API __attribute__ ((visibility("default")))
#else
More information about the Pcsclite-cvs-commit
mailing list