summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc-obj-c++-shared/objc-test-suite-next-encode-assist.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc-obj-c++-shared/objc-test-suite-next-encode-assist.h')
-rw-r--r--gcc/testsuite/objc-obj-c++-shared/objc-test-suite-next-encode-assist.h28
1 files changed, 9 insertions, 19 deletions
diff --git a/gcc/testsuite/objc-obj-c++-shared/objc-test-suite-next-encode-assist.h b/gcc/testsuite/objc-obj-c++-shared/objc-test-suite-next-encode-assist.h
index 0a0f93c376a..af02b278a2e 100644
--- a/gcc/testsuite/objc-obj-c++-shared/objc-test-suite-next-encode-assist.h
+++ b/gcc/testsuite/objc-obj-c++-shared/objc-test-suite-next-encode-assist.h
@@ -10,29 +10,18 @@ typedef void * PMETH;
#else
#include <objc/objc-runtime.h>
typedef struct objc_method * PMETH;
-#endif
-
-/* The NeXT headers do not define NULL. */
-#ifndef NULL
-#define NULL 0
-#endif
-/* The NeXT runtimes do not include these functions (at least not through
- any public API). They are required for the objc/execute/bf-* and bycopy-3. */
-
-/* Not sure why the following are missing from NeXT objc headers... */
-
-#ifndef _C_LNG_LNG
+/* Missing from old NeXT objc headers... */
#define _C_LNG_LNG 'q'
-#endif
-#ifndef _C_ULNG_LNG
#define _C_ULNG_LNG 'Q'
-#endif
-#ifndef _C_ATOM
#define _C_ATOM '%'
-#endif
-#ifndef _C_BOOL
#define _C_BOOL 'B'
+
+#endif
+
+/* The NeXT headers do not define NULL. */
+#ifndef NULL
+#define NULL 0
#endif
#define _C_CONST 'r'
@@ -53,7 +42,8 @@ typedef struct objc_method * PMETH;
#define _F_ONEWAY 0x10
#define _F_GCINVISIBLE 0x20
-/* Functions available in the GNU runtime, emulated here for testing with NeXT. */
+/* The NeXT runtimes do not include these functions (at least not through
+ any public API). They are required for the objc/execute/bf-* and bycopy-3. */
struct objc_struct_layout
{