X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FHsVersions.h;h=09c8d2efed3f3caf300b19fa6b26abb9120d2213;hb=dbc1ed7e054a1c67cd34ff4776feea0d176e3bbb;hp=14f14233fff58e588e90634f0e7b8bdd481b1d24;hpb=e48618c7132ee7954c6a869d4cc007f1f854c302;p=ghc-hetmet.git diff --git a/compiler/HsVersions.h b/compiler/HsVersions.h index 14f1423..09c8d2e 100644 --- a/compiler/HsVersions.h +++ b/compiler/HsVersions.h @@ -22,20 +22,20 @@ you will screw up the layout where they are used in case expressions! * settings for the target plat instead). */ #include "../includes/ghcautoconf.h" -#if !defined(__GLASGOW_HASKELL__) || __GLASGOW_HASKELL__ >= 602 -#define SYSTEM_IO_ERROR System.IO.Error -#else -#define SYSTEM_IO_ERROR System.IO -#endif - /* Global variables may not work in other Haskell implementations, * but we need them currently! so the conditional on GLASGOW won't do. */ +#ifndef __HADDOCK__ #if defined(__GLASGOW_HASKELL__) || !defined(__GLASGOW_HASKELL__) #define GLOBAL_VAR(name,value,ty) \ {-# NOINLINE name #-}; \ name :: IORef (ty); \ name = Util.global (value); #endif +#else /* __HADDOCK__ */ +#define GLOBAL_VAR(name,value,ty) \ +name :: IORef (ty); \ +name = Util.global (value); +#endif #define COMMA ,