1 #ifndef GAUDIKERNEL_KERNEL_H 2 #define GAUDIKERNEL_KERNEL_H 7 #pragma warning( disable : 4786 ) 10 #pragma warning( disable : 4291 ) 12 #pragma warning( disable : 4250 ) 17 #ifndef NO_LONGLONG_TYPEDEF 23 #define LONGLONG_MAX 0x7FFFFFFFFFFFFFFFLL 26 #define LONGLONG_MIN 0x8000000000000000LL 30 #define ULONGLONG_MAX 0xFFFFFFFFFFFFFFFFLL 33 #define ULONGLONG_MIN 0x0000000000000000LL 35 #elif defined( __linux ) || defined( __APPLE__ ) 36 #ifndef NO_LONGLONG_TYPEDEF 42 #define LONGLONG_MAX 0x7FFFFFFFFFFFFFFFLL 45 #define LONGLONG_MIN 0x8000000000000000LL 49 #define ULONGLONG_MAX 0xfFFFFFFFFFFFFFFFLL 52 #define ULONGLONG_MIN 0x0000000000000000LL 62 static const __longlong LONGLONG_MAX = {0x7FFFFFFF, 0xFFFFFFFF};
63 static const __longlong LONGLONG_MIN = {0x80000000, 0x00000000};
64 static const __ulonglong ULONGLONG_MAX = {0xFFFFFFFF, 0xFFFFFFFF};
65 static const __ulonglong ULONGLONG_MIN = {0x00000000, 0x00000000};
70 #if !defined( GAUDI_V20_COMPAT ) || defined( G21_HIDE_SYMBOLS ) 73 #if __GNUC__ >= 4 && !defined( __CINT__ ) 74 #define GAUDI_HASCLASSVISIBILITY 89 #if defined( GAUDI_HASCLASSVISIBILITY ) 90 #define GAUDI_IMPORT __attribute__( ( visibility( "default" ) ) ) 91 #define GAUDI_EXPORT __attribute__( ( visibility( "default" ) ) ) 92 #define GAUDI_LOCAL __attribute__( ( visibility( "hidden" ) ) ) 101 #ifdef GAUDI_LINKER_LIBRARY 102 #define GAUDI_API GAUDI_EXPORT 104 #define GAUDI_API GAUDI_IMPORT 112 #endif // GAUDI_V20_COMPAT 118 #define LIKELY( x ) __builtin_expect( ( x ), 1 ) 119 #define UNLIKELY( x ) __builtin_expect( ( x ), 0 ) 121 #define LIKELY( x ) x 122 #define UNLIKELY( x ) x 126 #endif // GAUDIKERNEL_KERNEL_H