00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __misc_h__
00013 #define __misc_h__
00014
00015 #ifdef __cplusplus
00016 extern "C"
00017 {
00018 #endif
00019
00020
00021
00022
00023
00024
00025
00026
00027 #if defined __GNUC__
00028 #define INTERNAL __attribute__ ((visibility("hidden")))
00029 #define PCSC_API __attribute__ ((visibility("default")))
00030 #else
00031 #define INTERNAL
00032 #define PCSC_API
00033 #endif
00034 #define EXTERNAL PCSC_API
00035
00036 #if defined __GNUC__
00037
00038
00039 #define CONSTRUCTOR __attribute__ ((constructor))
00040 #define DESTRUCTOR __attribute__ ((destructor))
00041
00042 #else
00043
00044
00045
00046
00047
00048
00049
00050 #define CONSTRUCTOR
00051 #define DESTRUCTOR
00052
00053 #endif
00054
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058
00059 #endif