<malloc.h>: Restrict support for <malloc.h> to !defined(__STDC__).
[dragonfly.git] / include / malloc.h
index d4407d2..a6752b6 100644 (file)
@@ -1,5 +1,5 @@
-#if __GNUC__
-#warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead"
-#endif
-
+#if __STDC__
+#error "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead"
+#else
 #include <stdlib.h>
+#endif