aboutsummaryrefslogtreecommitdiff
path: root/win32/include/_mingw.h
diff options
context:
space:
mode:
authorgrischka <grischka>2011-07-11 18:44:47 +0200
committergrischka <grischka>2011-07-11 18:44:47 +0200
commit7b573dc239a576da37f288c9ba39df5c0854b41d (patch)
tree52c0aaf2ec7384204278588479b8bf62a00b8e2a /win32/include/_mingw.h
parent436c1a734ff8cc1e454e2fe1d88dd891af909991 (diff)
downloadtinycc-7b573dc239a576da37f288c9ba39df5c0854b41d.tar.gz
tinycc-7b573dc239a576da37f288c9ba39df5c0854b41d.tar.bz2
win32/include: enable _timezone etc variables.
which live in msvcrt.dll and need __declspec(import) which works by now. Also: - _mingw.h: conditionally define WIN32_LEAN_AND_MEAN - malloc.h: don't undef alloca
Diffstat (limited to 'win32/include/_mingw.h')
-rw-r--r--win32/include/_mingw.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/include/_mingw.h b/win32/include/_mingw.h
index e8e9561..00ff2fc 100644
--- a/win32/include/_mingw.h
+++ b/win32/include/_mingw.h
@@ -38,9 +38,8 @@
#define __unaligned __attribute__((packed))
#define __fastcall __attribute__((fastcall))
-// #define __MINGW_IMPORT extern __declspec(dllimport)
+#define __MINGW_IMPORT extern __declspec(dllimport)
#undef _MSVCRT_
-#undef __MINGW_IMPORT
#define __MINGW_ATTRIB_NORETURN
#define __MINGW_ATTRIB_CONST
#define __MINGW_ATTRIB_DEPRECATED
@@ -124,10 +123,12 @@ typedef struct localeinfo_struct _locale_tstruct,*_locale_t;
#define _ANONYMOUS_STRUCT
#define DECLSPEC_NORETURN
#define DECLARE_STDCALL_P(type) __stdcall type
-#define WIN32_LEAN_AND_MEAN
#define NOSERVICE 1
#define NOMCX 1
#define NOIME 1
+#ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+#endif
#ifndef WINVER
# define WINVER 0x0502
#endif