14 #ifndef __INCLUDED__SCOPIRA_TOOL_PLATFORM_H__ 15 #define __INCLUDED__SCOPIRA_TOOL_PLATFORM_H__ 33 #define SCOPIRA_VERSION "0.9.12" 34 #define SCOPIRA_VERSION_MAJOR 0 35 #define SCOPIRA_VERSION_MINOR 9 36 #define SCOPIRA_VERSION_SUBMINOR 12 38 #if !defined(PLATFORM_win32) && defined(WIN32) 39 #define PLATFORM_win32 42 #if !defined(PLATFORM_win32) && !defined(PLATFORM_UNIX) 47 #define PLATFORM_BYTESWAP 53 #elif defined(BUILDBOSS_64) 56 #elif !defined(PLATFORM_32) && !defined(PLATFORM_64) 61 #define PLATFORM_DEBUG 66 #define PLATFORM_DESC "linux" 67 #elif defined(PLATFORM_win32) 68 #define PLATFORM_DESC "ms_win32" 69 #elif defined(PLATFORM_irix) 70 #define PLATFORM_DESC "irix" 71 #elif defined(PLATFORM_osx) 72 #define PLATFORM_DESC "mac_osx" 74 #error You must define a valid PLATFORM_ 97 typedef signed __int8 int8_t;
98 typedef signed __int16 int16_t;
99 typedef signed __int32 int32_t;
100 typedef signed __int64 int64_t;
101 typedef unsigned __int8 uint8_t;
102 typedef unsigned __int16 uint16_t;
103 typedef unsigned __int32 uint32_t;
104 typedef unsigned __int64 uint64_t;
105 typedef float float32_t;
106 typedef double float64_t;
109 typedef signed __int64 intptr_t;
110 typedef unsigned __int64 uintptr_t;
112 typedef signed __int32 intptr_t;
113 typedef unsigned __int32 uintptr_t;
115 typedef float float32_t;
116 typedef double float64_t;
119 #ifdef PLATFORM_win32 122 #define PLATFORM_INDLL __declspec(dllexport) 123 #define PLATFORM_OUTDLL __declspec(dllimport) 124 #elif defined(PLATFORM_visibility) && defined(GCC_HASCLASSVISIBILITY) 144 #define PLATFORM_INDLL __attribute__ ((visibility("default"))) 145 #define PLATFORM_OUTDLL __attribute__ ((visibility("default"))) 147 #define PLATFORM_INDLL 148 #define PLATFORM_OUTDLL