diff options
| author | Roy <roytam@gmail.com> | 2012-12-31 08:59:50 +0800 |
|---|---|---|
| committer | Roy <roytam@gmail.com> | 2012-12-31 08:59:50 +0800 |
| commit | fc574f14984d11f1ead50560d1bdc5ae0eaf6d8d (patch) | |
| tree | 7c79ae9a4b93f3e33ccd9ae1ffd5f14d9e9fe62e /win32/include/malloc.h | |
| parent | 63193d1794b037eb4f3b6551596fa8a6d423e0c3 (diff) | |
| download | tinycc-fc574f14984d11f1ead50560d1bdc5ae0eaf6d8d.tar.gz tinycc-fc574f14984d11f1ead50560d1bdc5ae0eaf6d8d.tar.bz2 | |
win32: malloc.h: fix win32 tcc-tcc complication by correcting _STATIC_ASSERT, ideas from mingw-w64 changeset 4293
stdarg.h, stddef.h: _mingw.h needs them
Diffstat (limited to 'win32/include/malloc.h')
| -rw-r--r-- | win32/include/malloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/include/malloc.h b/win32/include/malloc.h index 8426600..87f1868 100644 --- a/win32/include/malloc.h +++ b/win32/include/malloc.h @@ -25,7 +25,7 @@ extern "C" { #endif #ifndef _STATIC_ASSERT -#define _STATIC_ASSERT(expr) typedef char __static_assert_t[(expr)] +#define _STATIC_ASSERT(expr) extern void __static_assert_t(int [(expr)?1:-1]) #endif /* Return codes for _heapwalk() */ |
