History

win32: adjust for mingw32 winapi packages

Note: the files in tcc/win32/include/winapi are now from the mingw-w64 project, however with this fix using mingw32 winapi should still work.

grischka committed 16 years ago

Commit 3aa26a71 parent a40814c1 file · +11 −0Browse files

Unified · Split

win32/include/_mingw.h+11−0
@@ -18,6 +18,13 @@ · 17 unmodified lines
1818 #ifndef __MINGW_H
1919 #define __MINGW_H
2020
21+/* some winapi files define these before including _mingw.h --> */
22+#undef NULL
23+#undef __cdecl
24+#undef _X86_
25+#undef WIN32
26+/* <-- */
27+
2128 #include <stddef.h>
2229 #include <stdarg.h>
2330
@@ -111,6 +118,10 @@ typedef struct threadmbcinfostruct *pthreadmbcinfo; · 87 unmodified lines
111118 typedef struct localeinfo_struct _locale_tstruct,*_locale_t;
112119
113120 /* for winapi */
121+#define _ANONYMOUS_UNION
122+#define _ANONYMOUS_STRUCT
123+#define DECLSPEC_NORETURN
124+#define DECLARE_STDCALL_P(type) __stdcall type
114125 #define WIN32_LEAN_AND_MEAN
115126 #define NOSERVICE 1
116127 #define NOMCX 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t