diff options
author | Sam Lantinga <slouken@libsdl.org> | 2011-10-31 05:56:58 -0400 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2011-10-31 05:56:58 -0400 |
commit | 07b4a2ffe6a33667d09fbe4693d4c977b2f3d100 (patch) | |
tree | 0c97c27488f1b550ada2af5270b321833378a7ac /src/thread/windows | |
parent | e19a2fbe61685250e0db0d972253250cc85c4809 (diff) |
Lots of fixes importing SDL source wholesale into a new iOS project
--HG--
rename : src/libm/math.h => src/libm/math_libm.h
Diffstat (limited to 'src/thread/windows')
-rw-r--r-- | src/thread/windows/SDL_sysmutex.c | 4 | ||||
-rw-r--r-- | src/thread/windows/SDL_syssem.c | 4 | ||||
-rw-r--r-- | src/thread/windows/SDL_systhread.c | 4 | ||||
-rw-r--r-- | src/thread/windows/win_ce_semaphore.c | 8 |
4 files changed, 19 insertions, 1 deletions
diff --git a/src/thread/windows/SDL_sysmutex.c b/src/thread/windows/SDL_sysmutex.c index 184cd27d..ab35a961 100644 --- a/src/thread/windows/SDL_sysmutex.c +++ b/src/thread/windows/SDL_sysmutex.c @@ -20,6 +20,8 @@ */ #include "SDL_config.h" +#if SDL_THREAD_WINDOWS + /* Mutex functions using the Win32 API */ #include "../../core/windows/SDL_windows.h" @@ -90,4 +92,6 @@ SDL_mutexV(SDL_mutex * mutex) return (0); } +#endif /* SDL_THREAD_WINDOWS */ + /* vi: set ts=4 sw=4 expandtab: */ diff --git a/src/thread/windows/SDL_syssem.c b/src/thread/windows/SDL_syssem.c index c5589f0c..b1543dab 100644 --- a/src/thread/windows/SDL_syssem.c +++ b/src/thread/windows/SDL_syssem.c @@ -20,6 +20,8 @@ */ #include "SDL_config.h" +#if SDL_THREAD_WINDOWS + /* Semaphore functions using the Win32 API */ #include "../../core/windows/SDL_windows.h" @@ -169,4 +171,6 @@ SDL_SemPost(SDL_sem * sem) return 0; } +#endif /* SDL_THREAD_WINDOWS */ + /* vi: set ts=4 sw=4 expandtab: */ diff --git a/src/thread/windows/SDL_systhread.c b/src/thread/windows/SDL_systhread.c index 3c133e09..47bc0d20 100644 --- a/src/thread/windows/SDL_systhread.c +++ b/src/thread/windows/SDL_systhread.c @@ -20,6 +20,8 @@ */ #include "SDL_config.h" +#if SDL_THREAD_WINDOWS + /* Win32 thread management routines for SDL */ #include "SDL_thread.h" @@ -216,4 +218,6 @@ SDL_SYS_WaitThread(SDL_Thread * thread) CloseHandle(thread->handle); } +#endif /* SDL_THREAD_WINDOWS */ + /* vi: set ts=4 sw=4 expandtab: */ diff --git a/src/thread/windows/win_ce_semaphore.c b/src/thread/windows/win_ce_semaphore.c index 62072f56..f243682b 100644 --- a/src/thread/windows/win_ce_semaphore.c +++ b/src/thread/windows/win_ce_semaphore.c @@ -26,7 +26,11 @@ 6. The wait function emulates WaitForSingleObject only. An emulation of WaitForMultipleObjects is much harder to implement outside the kernel, and it is not clear how to handle a mixture of WCE semaphores and normal - events and mutexes. */ + events and mutexes. +*/ +#include "SDL_config.h" + +#if SDL_THREAD_WINDOWS #include "../../core/windows/SDL_windows.h" @@ -224,4 +228,6 @@ CleanUp(SYNCHHANDLE hSynch, DWORD Flags) return hSynch; } +#endif /* SDL_THREAD_WINDOWS */ + /* vi: set ts=4 sw=4 expandtab: */ |