48 #if defined __GNUC__ && (! defined (__sun)) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
49 #define INTERNAL __attribute__ ((visibility("hidden")))
50 #define PCSC_API __attribute__ ((visibility("default")))
51 #elif (! defined __GNUC__ ) && defined (__sun)
53 #define INTERNAL __hidden
54 #define PCSC_API __global
59 #define EXTERNAL PCSC_API
64 #define CONSTRUCTOR __attribute__ ((constructor))
65 #define DESTRUCTOR __attribute__ ((destructor))
81 #define min(a,b) (((a) < (b)) ? (a) : (b))
85 #define COUNT_OF(arr) (sizeof(arr)/sizeof(arr[0]))