From f73b17323eefc9f8b3c2e992d57ed5f631bf72f6 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 20 Aug 2006 13:48:04 +0000 Subject: (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. --- thread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index a2475408b..ab2cfd21d 100644 --- a/thread.c +++ b/thread.c @@ -4,10 +4,10 @@ #include "thread.h" #include -#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__) -- cgit v1.2.3-54-g00ecf