X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FHsVersions.h;h=f11aa214c416a667eae00ac55de5ff19addaf913;hp=68884c0a11d7986d158792c441ee19cbc43fd9fa;hb=eab8711f0b0723c61ec4fece2b70983c90d92d19;hpb=49c98d143c382a1341e1046f5ca00819a25691ba diff --git a/compiler/HsVersions.h b/compiler/HsVersions.h index 68884c0..f11aa21 100644 --- a/compiler/HsVersions.h +++ b/compiler/HsVersions.h @@ -22,6 +22,12 @@ you will screw up the layout where they are used in case expressions! * settings for the target plat instead). */ #include "../includes/ghcautoconf.h" +#if __GLASGOW_HASKELL__ >= 602 +#define SYSTEM_IO_ERROR System.IO.Error +#else +#define SYSTEM_IO_ERROR System.IO +#endif + #ifdef __GLASGOW_HASKELL__ #define GLOBAL_VAR(name,value,ty) \ name = Util.global (value) :: IORef (ty); \