commit 1371fb0b42a7b4803047ad52bb39acd222054125 parent 08b060601c2460d88aef8e70a1a03e8a556bf2ca Author: sin <sin@2f30.org> Date: Thu, 18 Jul 2013 16:36:04 +0100 Create a bool type Diffstat:
M | include/stddef.h | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/stddef.h b/include/stddef.h @@ -5,10 +5,10 @@ #define NULL ((void*)0) -enum { +typedef enum { false = 0, true = 1 -}; +} bool; #define offsetof(type, member) ((uintptr_t)&((type*)0)->member)