OSDN Git Service

PR c++/41970
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / comp-types-4.m
index e077804..f15390a 100644 (file)
@@ -3,6 +3,11 @@
 /* { dg-do compile } */
 #include <objc/objc.h>
 
+/* The NeXT runtime headers do not define NULL.  */
+#ifndef NULL
+#define NULL ((void *)0)
+#endif
+
 @protocol MyProtocol
 - (void) method;
 @end