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
18#ifndef __MINGW_H18#ifndef __MINGW_H
19#define __MINGW_H19#define __MINGW_H
20 20
21/* some winapi files define these before including _mingw.h --> */
22#undef NULL
23#undef __cdecl
24#undef _X86_
25#undef WIN32
26/* <-- */
27
21#include <stddef.h>28#include <stddef.h>
22#include <stdarg.h>29#include <stdarg.h>
23 30
@@ -111,6 +118,10 @@ typedef struct threadmbcinfostruct *pthreadmbcinfo; · 87 unmodified lines
111typedef struct localeinfo_struct _locale_tstruct,*_locale_t;118typedef struct localeinfo_struct _locale_tstruct,*_locale_t;
112 119
113/* for winapi */120/* for winapi */
121#define _ANONYMOUS_UNION
122#define _ANONYMOUS_STRUCT
123#define DECLSPEC_NORETURN
124#define DECLARE_STDCALL_P(type) __stdcall type
114#define WIN32_LEAN_AND_MEAN125#define WIN32_LEAN_AND_MEAN
115#define NOSERVICE 1126#define NOSERVICE 1
116#define NOMCX 1127#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