12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef WIN32FIX_H__
- #define WIN32FIX_H__
- #if _MSC_VER >= 1000
- #pragma once
- #endif
- #include <malloc.h>
- /////////////////////////////
- #ifdef SYSTEM_WIN32
- #define alloca _alloca
- #define strncasecmp _strnicmp
- #define strcasecmp _stricmp
- #if !defined(_MSC_VER) || defined(__MINGW32__)
- #define snprintf _snprintf
- #define vsnprintf _vsnprintf
- #endif
- #define finite _finite
- #define rotl _rotl
- #define rotr _rotr
- #undef STDCALL
- #undef FASTCALL
- #undef CDECL
- #define STDCALL __stdcall
- #define FASTCALL __fastcall
- #define CDECL __cdecl
- #define INLINE __inline
- #endif
- /////////////////////////////
- /////////////////////////////
- #ifdef SYSTEM_POSIX
- #define _MAX_PATH 4096
- #define _MAX_DRIVE 4096
- #define _MAX_DIR 4096
- #define _MAX_FNAME 4096
- #define _MAX_EXT 4096
- #define STDCALL
- #define FASTCALL
- #define CDECL
- #define INLINE inline
- #endif
- /////////////////////////////
- #endif ///////////////////////////// WIN32FIX_H__
|