Index: src/OFAutoreleasePool.m ================================================================== --- src/OFAutoreleasePool.m +++ src/OFAutoreleasePool.m @@ -25,17 +25,15 @@ * Use NULL for TLS values and nil for instance variables. */ static of_tlskey_t first_key, last_key; -#ifndef _WIN32 /* Not used on Win32 yet */ static void release_all(id obj) { [of_tlskey_get(first_key) release]; } -#endif @implementation OFAutoreleasePool + (void)initialize { if (self != [OFAutoreleasePool class]) Index: src/threading.h ================================================================== --- src/threading.h +++ src/threading.h @@ -25,22 +25,22 @@ #ifndef _WIN32 #define of_thread_is_current(t) pthread_equal(t, pthread_self()) #define of_thread_current() pthread_self() #else -#define of_thread_is_current(t) (t == GetCurrentThreadId()) -#define of_thread_current() GetCurrentThreadId() +#define of_thread_is_current(t) (t == GetCurrentThread()) +#define of_thread_current() GetCurrentThread() #endif static OF_INLINE BOOL of_thread_new(of_thread_t *thread, id (*main)(id), id data) { #ifndef _WIN32 return (pthread_create(thread, NULL, (void*(*)(void*))main, (void*)data) ? NO : YES); #else - *thread = CreateThread(NULL, 0, (void*(*)(void*))main, + *thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)main, (void*)data, 0, NULL); return (thread == NULL ? NO : YES); #endif }