Futher changes to casts
[tinycc/daniel.git] / win32 / include / _mingw.h
blob257c523761a762ecd7358beba7792c931a77608b
1 /*
2 * _mingw.h
4 * This file is for TCC-PE and not part of the Mingw32 package.
6 * THIS SOFTWARE IS NOT COPYRIGHTED
8 * This source code is offered for use in the public domain. You may
9 * use, modify or distribute it freely.
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.
18 #ifndef __MINGW_H
19 #define __MINGW_H
21 #include <stddef.h>
23 #define __int64 long long
24 #define __int32 long
25 #define __int16 short
26 #define __int8 char
27 #define __cdecl __attribute__((__cdecl__))
28 #define __stdcall __attribute__((__stdcall__))
29 #define __declspec(x) __attribute__((x))
31 #define __MINGW32_VERSION 2.0
32 #define __MINGW32_MAJOR_VERSION 2
33 #define __MINGW32_MINOR_VERSION 0
35 #define __MSVCRT__ 1
36 #define __MINGW_IMPORT extern
37 #define _CRTIMP
38 #define __CRT_INLINE extern __inline__
40 #define WIN32 1
42 #ifndef _WINT_T
43 #define _WINT_T
44 typedef unsigned int wint_t;
45 #endif
47 /* for winapi */
48 #define _ANONYMOUS_UNION
49 #define _ANONYMOUS_STRUCT
50 #define DECLSPEC_NORETURN
51 #define WIN32_LEAN_AND_MEAN
52 #define DECLARE_STDCALL_P(type) __stdcall type
54 #endif /* __MINGW_H */