diff options
author | truelight <truelight@openttd.org> | 2006-08-20 13:48:04 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-20 13:48:04 +0000 |
commit | f73b17323eefc9f8b3c2e992d57ed5f631bf72f6 (patch) | |
tree | 921925981de00629f1e983eaa3e59cb4b02c85f8 /thread.c | |
parent | a06d5548ebe58ab290be50ca4b31368db5f4bc10 (diff) | |
download | openttd-f73b17323eefc9f8b3c2e992d57ed5f631bf72f6.tar.xz |
(svn r5978) -Add: allow a switch in Makefile.config to disable threads in OpenTTD (no matter what system you are on). Only useful for testing.
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,10 +4,10 @@ #include "thread.h" #include <stdlib.h> -#if defined(__AMIGA__) || defined(__MORPHOS__) -OTTDThread* OTTDCreateThread(OTTDThreadFunc function, void* arg) { return NULL; } -void* OTTDJoinThread(OTTDThread* t) { return NULL; } -void OTTDExitThread() { NOT_REACHED(); }; +#if defined(__AMIGA__) || defined(__MORPHOS__) || defined(NO_THREADS) +OTTDThread *OTTDCreateThread(OTTDThreadFunc function, void *arg) { return NULL; } +void *OTTDJoinThread(OTTDThread *t) { return NULL; } +void OTTDExitThread(void) { NOT_REACHED(); }; #elif defined(__OS2__) |