diff options
| author | bellard <bellard> | 2005-04-14 23:49:21 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2005-04-14 23:49:21 +0000 |
| commit | 4821702fb49c72216c307341dc3dfd5a3984cf83 (patch) | |
| tree | a26b97b558b47f741a1aebdc8a9962dd86b7436b /win32/include/_mingw.h | |
| parent | d733dc752e8d19bdebca46678c70d04d4d1f6f76 (diff) | |
| download | tinycc-4821702fb49c72216c307341dc3dfd5a3984cf83.tar.gz tinycc-4821702fb49c72216c307341dc3dfd5a3984cf83.tar.bz2 | |
win32 merge
Diffstat (limited to 'win32/include/_mingw.h')
| -rw-r--r-- | win32/include/_mingw.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/win32/include/_mingw.h b/win32/include/_mingw.h new file mode 100644 index 0000000..9029920 --- /dev/null +++ b/win32/include/_mingw.h @@ -0,0 +1,51 @@ +/*
+ * _mingw.h
+ *
+ * This file is for TCC-PE and not part of the Mingw32 package.
+ *
+ * THIS SOFTWARE IS NOT COPYRIGHTED
+ *
+ * This source code is offered for use in the public domain. You may
+ * use, modify or distribute it freely.
+ *
+ * This code is distributed in the hope that it will be useful but
+ * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
+ * DISCLAIMED. This includes but is not limited to warranties of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ */
+
+#ifndef __MINGW_H
+#define __MINGW_H
+
+#define __int64 long long
+#define __int32 long
+#define __int16 short
+#define __int8 char
+#define __cdecl __attribute__((__cdecl__))
+#define __stdcall __attribute__((__stdcall__))
+#define __declspec(x) __attribute__((x))
+
+#define __MINGW32_VERSION 2.0
+#define __MINGW32_MAJOR_VERSION 2
+#define __MINGW32_MINOR_VERSION 0
+
+#define __MSVCRT__
+#define __MINGW_IMPORT extern
+#define _CRTIMP
+#define __CRT_INLINE extern __inline__
+
+#define _WIN32
+#define WIN32
+
+#ifndef _WINT_T
+#define _WINT_T
+typedef unsigned int wint_t;
+#endif
+
+/* for winapi */
+#define NONAMELESSUNION
+#define DECLSPEC_NORETURN
+#define WIN32_LEAN_AND_MEAN
+
+#endif /* __MINGW_H */
|
