X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FRts.h;h=32e48d2896bd61908699c9b59c27d92bc634c457;hb=13a428caa18deb2805e307cbe7a99fa9f09c13a4;hp=40deb1e431a26857764214abd8cc68985e3e37a6;hpb=1b28d4e1f43185ad8c8e7407c66413e1b358402b;p=ghc-hetmet.git diff --git a/ghc/includes/Rts.h b/ghc/includes/Rts.h index 40deb1e..32e48d2 100644 --- a/ghc/includes/Rts.h +++ b/ghc/includes/Rts.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Rts.h,v 1.12 2000/01/13 14:34:01 hwloidl Exp $ + * $Id: Rts.h,v 1.15 2001/11/25 03:56:39 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -10,6 +10,10 @@ #ifndef RTS_H #define RTS_H +#ifdef __cplusplus +extern "C" { +#endif + #ifndef IN_STG_CODE #define IN_STG_CODE 0 #endif @@ -90,15 +94,13 @@ Useful macros and inline functions -------------------------------------------------------------------------- */ -/* - * Use this on the RHS of macros which expand to nothing - * to make sure that the macro can be used in a context which - * demands a non-empty statement. - */ - -#define doNothing() do { } while (0) - #define stg_min(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _a : _b; }) #define stg_max(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _b : _a; }) -#endif RTS_H +/* -------------------------------------------------------------------------- */ + +#ifdef __cplusplus +} +#endif + +#endif /* RTS_H */