X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fincludes%2FRts.h;h=3b5af21a0bdd1e03a0f5ac36b888f8b9afd35de2;hb=89408a89fa2ea7d5977498e27983f7d00dc1d857;hp=fb2a70bc229f2dd9c5db632ede17713bf6d12b0b;hpb=ad455445e0c798e348a96a7a835c8d0ccf939e89;p=ghc-hetmet.git diff --git a/ghc/includes/Rts.h b/ghc/includes/Rts.h index fb2a70b..3b5af21 100644 --- a/ghc/includes/Rts.h +++ b/ghc/includes/Rts.h @@ -29,10 +29,6 @@ extern "C" { #define FLEXIBLE_ARRAY 0 #endif -#if defined(SMP) || defined(THREADED_RTS) -#define RTS_SUPPORTS_THREADS 1 -#endif - /* Fix for mingw stat problem (done here so it's early enough) */ #ifdef mingw32_HOST_OS #define __MSVCRT__ 1 @@ -74,6 +70,30 @@ extern void _assertFail (char *, unsigned int); #define doNothing() do { } while (0) +#ifdef SMP +#define USED_IF_SMP +#define USED_IF_NOT_SMP STG_UNUSED +#else +#define USED_IF_SMP STG_UNUSED +#define USED_IF_NOT_SMP +#endif + +#ifdef DEBUG +#define USED_IF_DEBUG +#define USED_IF_NOT_DEBUG STG_UNUSED +#else +#define USED_IF_DEBUG STG_UNUSED +#define USED_IF_NOT_DEBUG +#endif + +#ifdef THREADED_RTS +#define USED_IF_THREADS +#define USED_IF_NOT_THREADS STG_UNUSED +#else +#define USED_IF_THREADS STG_UNUSED +#define USED_IF_NOT_THREADS +#endif + /* ----------------------------------------------------------------------------- Include everything STG-ish -------------------------------------------------------------------------- */ @@ -108,15 +128,12 @@ extern void _assertFail (char *, unsigned int); /* Parallel information */ #include "Parallel.h" +#include "OSThreads.h" +#include "SMP.h" /* STG/Optimised-C related stuff */ -#include "SMP.h" #include "Block.h" -#ifdef SMP -#include -#endif - /* GNU mp library */ #include "gmp.h"