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};
69 #define TEMPLATE_SPECIALIZATION template <> 70 #elif defined( __linux ) || defined( __APPLE__ ) 71 #define TEMPLATE_SPECIALIZATION 76 #if !defined( GAUDI_V20_COMPAT ) || defined( G21_HIDE_SYMBOLS ) 79 #if __GNUC__ >= 4 && !defined( __CINT__ ) 80 #define GAUDI_HASCLASSVISIBILITY 95 #if defined( GAUDI_HASCLASSVISIBILITY ) 96 #define GAUDI_IMPORT __attribute__( ( visibility( "default" ) ) ) 97 #define GAUDI_EXPORT __attribute__( ( visibility( "default" ) ) ) 98 #define GAUDI_LOCAL __attribute__( ( visibility( "hidden" ) ) ) 107 #ifdef GAUDI_LINKER_LIBRARY 108 #define GAUDI_API GAUDI_EXPORT 110 #define GAUDI_API GAUDI_IMPORT 118 #endif // GAUDI_V20_COMPAT 124 #define LIKELY( x ) __builtin_expect( ( x ), 1 ) 125 #define UNLIKELY( x ) __builtin_expect( ( x ), 0 ) 127 #define LIKELY( x ) x 128 #define UNLIKELY( x ) x 132 #endif // GAUDIKERNEL_KERNEL_H