#ifndef TOOLKIT_CONFIG_H #define TOOLKIT_CONFIG_H #ifndef TOOLKIT_LINKED_AS_STATIC_LIBRARY #ifdef _WIN32 #ifdef LIBTOOLKIT_EXPORTS #define TOOLKIT_API _declspec(dllexport) #else //LIBTOOLKIT_EXPORTS #define TOOLKIT_API _declspec(dllimport) #endif //LIBTOOLKIT_EXPORTS #elif defined(__GNUC__) #if __GNUC__ >= 4 #define TOOLKIT_API __attribute__((visibility("default"))) #else #define TOOLKIT_API #endif // __GUNC__ >= 4 #else //_WIN32 #define TOOLKIT_API #endif //_WIN32 #else //TOOLKIT_LINKED_AS_STATIC_LIBRARY #define TOOLKIT_API #endif //TOOLKIT_LINKED_AS_STATIC_LIBRARY #ifdef _WIN32 #define TOOLKIT_CC __cdecl #else #define TOOLKIT_CC #endif #ifndef _WIN32 #ifndef MAX_PATH #define MAX_PATH 260 #endif #endif //#define NO_FIXED_ADDR //#define DEBUD_MEM_TRACE #ifdef DEBUD_MEM_TRACE #define MEM_TRACE_LOCATION __FILE__, __FUNCTION__, __LINE__ #endif // DEBUD_MEM_TRACE //for linux compatibility. linux is unable to recognize __int64 #ifdef _WIN32 #ifndef u__int64_t #define u__int64_t unsigned __int64 #endif //u__int64_t #endif #include #ifndef TOOLKIT_TAG #include #define RVC_TAG(tag) "rvc." tag #define TOOLKIT_TAG(tag) RVC_TAG("libtoolkit.") tag #endif //TOOLKIT_TAG #ifdef __cplusplus extern "C" { #endif #ifndef __cplusplus #ifndef max #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef min #define min(a,b) (((a) < (b)) ? (a) : (b)) #endif #endif /* __cplusplus */ #ifdef __cplusplus } // extern "C" { #endif #endif // TOOLKIT_CONFIG_H