aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 48a42f2..8e79430 100644
--- a/tcc.h
+++ b/tcc.h
@@ -228,6 +228,10 @@
#define true 1
typedef int BOOL;
+#ifndef _STATIC_ASSERT
+#define _STATIC_ASSERT(cond) do { (void) sizeof(char [1 - 2*!(cond)]); } while(0)
+#endif
+
#define INCLUDE_STACK_SIZE 32
#define IFDEF_STACK_SIZE 64
#define VSTACK_SIZE 256