aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-18 00:24:05 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-18 00:24:05 +0200
commit3f14f899b2279e2734920eafac7aa4e2a8303eaf (patch)
tree43976d6b81d3c1cf091684d2a7e1a4d59e75fabd /include
parentm info (diff)
downloadslibc-3f14f899b2279e2734920eafac7aa4e2a8303eaf.tar.gz
slibc-3f14f899b2279e2734920eafac7aa4e2a8303eaf.tar.bz2
slibc-3f14f899b2279e2734920eafac7aa4e2a8303eaf.tar.xz
malloc.h should be included via stdlib.h
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r--include/malloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 046cfc3..c2a340b 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -20,6 +20,10 @@
#include <slibc/version.h>
#include <slibc/features.h>
+#ifndef _STDLIB_H
+# warning "Do not directly include <malloc.h>, include <stdlib.h> instead."
+#endif
+
#define __NEED_size_t