msvc.h 823 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __MSVC__HEAD
  2. #define __MSVC__HEAD
  3. #include <direct.h>
  4. #include <process.h>
  5. #include <malloc.h>
  6. #include <io.h>
  7. #pragma warning(disable: 4018) /* signed/unsigned comparison */
  8. #pragma warning(disable: 4244) /* type conversion, possible loss of data */
  9. #pragma warning(disable: 4090) /* 'function' : different 'const' qualifiers (ALLOC_GROW etc.)*/
  10. /* porting function */
  11. #define inline __inline
  12. #define __inline__ __inline
  13. #define __attribute__(x)
  14. #define strcasecmp _stricmp
  15. #define strncasecmp _strnicmp
  16. #define ftruncate _chsize
  17. #define strtoull _strtoui64
  18. #define strtoll _strtoi64
  19. #undef ERROR
  20. #define ftello _ftelli64
  21. typedef int sigset_t;
  22. /* open for reading, writing, or both (not in fcntl.h) */
  23. #define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
  24. #include "compat/mingw.h"
  25. #endif