From fc574f14984d11f1ead50560d1bdc5ae0eaf6d8d Mon Sep 17 00:00:00 2001 From: Roy Date: Mon, 31 Dec 2012 08:59:50 +0800 Subject: 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 --- win32/include/malloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/include/malloc.h') 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() */ -- cgit v1.3.1