mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-21 13:20:50 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@16871 72102866-910b-0410-8b05-ffd578937521
19 lines
403 B
Objective-C
19 lines
403 B
Objective-C
/* Test whether Objective-C runtime was compiled with thread support */
|
|
|
|
#ifndef NeXT_RUNTIME
|
|
/* Dummy NXConstantString impl for so libobjc that doesn't include it */
|
|
#include <objc/NXConstStr.h>
|
|
@implementation NXConstantString
|
|
@end
|
|
#endif
|
|
|
|
#include <objc/thr.h>
|
|
#include <objc/Object.h>
|
|
|
|
int
|
|
main()
|
|
{
|
|
id o = [Object new];
|
|
|
|
return (objc_thread_detach (@selector(hash), o, nil) == NULL) ? -1 : 0;
|
|
}
|