aboutsummaryrefslogtreecommitdiffstats
path: root/include/stddef.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-30 17:36:09 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-30 17:36:09 +0200
commit22d37d84a7ab0bb4208cdc8828541a30ef0821e2 (patch)
treef4405e288fc9c37b97c574325245bdb574c4144e /include/stddef.h
parentadd crealloc (diff)
downloadslibc-22d37d84a7ab0bb4208cdc8828541a30ef0821e2.tar.gz
slibc-22d37d84a7ab0bb4208cdc8828541a30ef0821e2.tar.bz2
slibc-22d37d84a7ab0bb4208cdc8828541a30ef0821e2.tar.xz
add memory allocation functions
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/stddef.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stddef.h b/include/stddef.h
index e3b98e5..275e53c 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -29,7 +29,9 @@
* way), use to indicate that a pointer does not point
* to anything.
*/
-#define NULL ((void*)0)
+#ifndef NULL
+# define NULL ((void*)0)
+#define
/**