diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-10-11 14:35:23 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-10-11 14:35:23 +0000 |
commit | 046ee54f048ddd721dcee41916d6a6f68db3b15b (patch) | |
tree | af3cf2046b70499d21ffd1d2fd1ca8f63951f41b /compiler/HsVersions.h | |
parent | 5199290f732017432869c9939934871e62c50b74 (diff) | |
download | haskell-046ee54f048ddd721dcee41916d6a6f68db3b15b.tar.gz |
Module header tidyup #2
Push this further along, and fix build problems in the first patch.
Diffstat (limited to 'compiler/HsVersions.h')
-rw-r--r-- | compiler/HsVersions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/HsVersions.h b/compiler/HsVersions.h index 68884c0a11..f11aa214c4 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); \ |