#ifndef _WINDEF_H
#define _WINDEF_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
* the windef.h header.
*/
#endif
+
#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER
/*
* including windows.h or any other method of including the windef.h header.
*/
#endif
-#ifndef WIN32
-#define WIN32
-#endif
-#ifndef _WIN32
-#define _WIN32
-#endif
+
#define FAR
#define far
#define NEAR
#define near
+
#ifndef CONST
#define CONST const
#endif
+
#undef MAX_PATH
#define MAX_PATH 260
#ifndef NULL
+
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void*)0)
#endif
+
#endif
+
#ifndef FALSE
#define FALSE 0
#endif
+
#ifndef TRUE
#define TRUE 1
#endif
#ifndef _NO_W32_PSEUDO_MODIFIERS
#define IN
#define OUT
+
#ifndef OPTIONAL
#define OPTIONAL
#endif
-#endif
-#ifndef _fastcall
-#define _fastcall __attribute__((fastcall))
-#endif
-#ifndef __fastcall
-#define __fastcall __attribute__((fastcall))
-#endif
-#ifndef _stdcall
-#define _stdcall __attribute__((stdcall))
-#endif
-#ifndef __stdcall
-#define __stdcall __attribute__((stdcall))
-#endif
-#ifndef _cdecl
-#define _cdecl __attribute__((cdecl))
-#endif
-#ifndef __cdecl
-#define __cdecl __attribute__((cdecl))
-#endif
-#ifndef __declspec
-#define __declspec(e) __attribute__((e))
#endif
+
#ifndef _declspec
-#define _declspec(e) __attribute__((e))
+#define _declspec(e) __declspec(e)
#endif
#undef pascal
#ifndef _export
#define _export
#endif
+
#ifndef __export
#define __export
#endif
#ifndef NOMINMAX
+
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))
#endif
+
#ifndef min
#define min(a,b) ((a)<(b)?(a):(b))
#endif
+
#endif
#define UNREFERENCED_PARAMETER(P) {(P)=(P);}
#define DUMMYUNIONNAME7 u7
#define DUMMYUNIONNAME8 u8
#else
+
#define _UNION_NAME(x)
#define DUMMYUNIONNAME
#define DUMMYUNIONNAME2
#define DUMMYUNIONNAME7
#define DUMMYUNIONNAME8
#endif
+
#ifndef _ANONYMOUS_STRUCT
#define _ANONYMOUS_STRUCT
#define _STRUCT_NAME(x) x
#define DUMMYSTRUCTNAME2 s2
#define DUMMYSTRUCTNAME3 s3
#else
+
#define _STRUCT_NAME(x)
#define DUMMYSTRUCTNAME
#define DUMMYSTRUCTNAME2
#endif
#ifndef NO_STRICT
+
#ifndef STRICT
#define STRICT 1
#endif
+
#endif
/* FIXME: This will make some code compile. The programs will most
typedef UINT_PTR WPARAM;
typedef LONG_PTR LPARAM;
typedef LONG_PTR LRESULT;
+
#ifndef _HRESULT_DEFINED
typedef LONG HRESULT;
#define _HRESULT_DEFINED
#endif
+
typedef WORD ATOM;
typedef HANDLE HHOOK;
typedef HANDLE HGLOBAL;
#ifdef __cplusplus
}
#endif
+
#endif