]> err.no Git - sope/blob - gnustep-make/config_thread.m
fixed mapping of 'method' attribute
[sope] / gnustep-make / config_thread.m
1 /* Test whether Objective-C runtime was compiled with thread support */
2
3 #ifndef NeXT_RUNTIME
4 /* Dummy NXConstantString impl for so libobjc that doesn't include it */
5 #include <objc/NXConstStr.h>
6 @implementation NXConstantString
7 @end
8 #endif
9
10 #include <objc/thr.h>
11 #include <objc/Object.h>
12
13 int
14 main()
15 {
16   id o = [Object new];
17
18   return (objc_thread_detach (@selector(hash), o, nil) == NULL) ? -1 : 0;
19 }