aboutsummaryrefslogtreecommitdiff
path: root/win32/include/malloc.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/malloc.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/malloc.h')
-rw-r--r--win32/include/malloc.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/win32/include/malloc.h b/win32/include/malloc.h
index bd9ad11..8426600 100644
--- a/win32/include/malloc.h
+++ b/win32/include/malloc.h
@@ -144,13 +144,9 @@ extern "C" {
#endif /* RC_INVOKED */
#ifndef NO_OLDNAMES
-#undef alloca
#ifdef __GNUC__
+#undef alloca
#define alloca(x) __builtin_alloca((x))
-#else
-#ifndef __TINYC__ //gr
-#define alloca _alloca
-#endif
#endif
#endif