ObjFW  Check-in [8faae2f499]

Overview
Comment:Make some GCC versions happy.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8faae2f49910a86a9f0453a065b28847af6bd89dd3fe83c61ca397dcd4453de6
User & Date: js on 2011-04-25 11:20:10
Other Links: manifest | tags
Context
2011-04-25
11:35
Add +[OFDataArray dataArray] with a default item size of 1. check-in: 12617ef944 user: js tags: trunk
11:20
Make some GCC versions happy. check-in: 8faae2f499 user: js tags: trunk
11:09
Fix a forgotten variable rename in objc_sync.m. check-in: b466a2bb49 user: js tags: trunk
Changes

Modified src/OFThread.m from [8a0ae17cde] to [ca215c7c50].

49
50
51
52
53
54
55


56
57
58
59
60
61
62
63
64

#import "threading.h"

static OFList *TLSKeys;
static of_tlskey_t threadSelf;

static id


call_main(OFThread *thread)
{
#if defined(OF_GNU_RUNTIME) || defined(OF_OLD_GNU_RUNTIME)
	objc_thread_add();
#endif

	if (!of_tlskey_set(threadSelf, thread))
		@throw [OFInitializationFailedException
		    newWithClass: [thread class]];







>
>
|
|







49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66

#import "threading.h"

static OFList *TLSKeys;
static of_tlskey_t threadSelf;

static id
call_main(id object)
{
	OFThread *thread = (OFThread*)object;

#if defined(OF_GNU_RUNTIME) || defined(OF_OLD_GNU_RUNTIME)
	objc_thread_add();
#endif

	if (!of_tlskey_set(threadSelf, thread))
		@throw [OFInitializationFailedException
		    newWithClass: [thread class]];