_mingw.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * _mingw.h
  3. *
  4. * This file is for TCC-PE and not part of the Mingw32 package.
  5. *
  6. * THIS SOFTWARE IS NOT COPYRIGHTED
  7. *
  8. * This source code is offered for use in the public domain. You may
  9. * use, modify or distribute it freely.
  10. *
  11. * This code is distributed in the hope that it will be useful but
  12. * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  13. * DISCLAIMED. This includes but is not limited to warranties of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. *
  16. */
  17. #ifndef __MINGW_H
  18. #define __MINGW_H
  19. #include <stddef.h>
  20. #define __int64 long long
  21. #define __int32 long
  22. #define __int16 short
  23. #define __int8 char
  24. #define __cdecl __attribute__((__cdecl__))
  25. #define __stdcall __attribute__((__stdcall__))
  26. #define __declspec(x) __attribute__((x))
  27. #define __MINGW32_VERSION 2.0
  28. #define __MINGW32_MAJOR_VERSION 2
  29. #define __MINGW32_MINOR_VERSION 0
  30. #define __MSVCRT__ 1
  31. #define __MINGW_IMPORT extern
  32. #define _CRTIMP
  33. #define __CRT_INLINE extern __inline__
  34. #define WIN32 1
  35. #ifndef _WINT_T
  36. #define _WINT_T
  37. typedef unsigned int wint_t;
  38. #endif
  39. /* for winapi */
  40. #define _ANONYMOUS_UNION
  41. #define _ANONYMOUS_STRUCT
  42. #define DECLSPEC_NORETURN
  43. #define WIN32_LEAN_AND_MEAN
  44. #define DECLARE_STDCALL_P(type) __stdcall type
  45. #endif /* __MINGW_H */