45 #if defined __GNUC__ && (! defined (__sun)) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
46 #define INTERNAL __attribute__ ((visibility("hidden")))
47 #define PCSC_API __attribute__ ((visibility("default")))
48 #elif (! defined __GNUC__ ) && defined (__sun)
50 #define INTERNAL __hidden
51 #define PCSC_API __global
56 #define EXTERNAL PCSC_API
61 #define CONSTRUCTOR __attribute__ ((constructor))
62 #define DESTRUCTOR __attribute__ ((destructor))
78 #define min(a,b) (((a) < (b)) ? (a) : (b))
82 #define COUNT_OF(arr) (sizeof(arr)/sizeof(arr[0]))