21 #ifndef ONIPLATFORMWIN32_H 22 #define ONIPLATFORMWIN32_H 27 #ifndef WINVER // Allow use of features specific to Windows XP or later 30 #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later 31 #define _WIN32_WINNT 0x0501 33 #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later 34 #define _WIN32_WINDOWS 0x0410 36 #ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later 37 #define _WIN32_IE 0x0600 39 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 42 #ifndef _CRT_SECURE_NO_DEPRECATE 43 #define _CRT_SECURE_NO_DEPRECATE 1 59 #if _MSC_VER < 1600 // Visual Studio 2008 and older doesn't have stdint.h... 76 #define ONI_PLATFORM ONI_PLATFORM_WIN32 77 #define ONI_PLATFORM_STRING "Win32" 82 #define ONI_PLATFORM_ENDIAN_TYPE ONI_PLATFORM_IS_LITTLE_ENDIAN 84 #define ONI_PLATFORM_SUPPORTS_DYNAMIC_LIBS 1 90 #define ONI_DEFAULT_MEM_ALIGN 16 93 #define ONI_THREAD_STATIC __declspec(thread) 99 #define ONI_FILE_MAX_PATH MAX_PATH 105 #define ONI_STDCALL __stdcall 108 #define ONI_CALLBACK_TYPE ONI_STDCALL 111 #define ONI_C_DECL __cdecl 117 #define ONI_TIMESTAMP __DATE__ " " __TIME__ 120 #define ONI_STRINGIFY(n) ONI_STRINGIFY_HELPER(n) 121 #define ONI_STRINGIFY_HELPER(n) #n 127 #define ONI_API_EXPORT __declspec(dllexport) 130 #define ONI_API_IMPORT __declspec(dllimport) 133 #if _MSC_VER < 1400 // Before VS2005 there was no support for declspec deprecated... 134 #define ONI_API_DEPRECATED(msg) 136 #define ONI_API_DEPRECATED(msg) __declspec(deprecated(msg)) 139 #endif // ONIPLATFORMWIN32_H