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
This commit is contained in:
Roy
2012-12-31 08:59:50 +08:00
parent 63193d1794
commit fc574f1498
3 changed files with 70 additions and 1 deletions

View File

@ -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() */