projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-03-09 10:38:17 by simonmar]
[ghc-hetmet.git]
/
ghc
/
compiler
/
utils
/
Binary.hs
diff --git
a/ghc/compiler/utils/Binary.hs
b/ghc/compiler/utils/Binary.hs
index
962531f
..
c20e2aa
100644
(file)
--- a/
ghc/compiler/utils/Binary.hs
+++ b/
ghc/compiler/utils/Binary.hs
@@
-615,7
+615,12
@@
lazyGet bh = do
-- --------------------------------------------------------------
initBinMemSize = (1024*1024) :: Int
-- --------------------------------------------------------------
initBinMemSize = (1024*1024) :: Int
+
+#if WORD_SIZE_IN_BITS == 32
binaryInterfaceMagic = 0x1face :: Word32
binaryInterfaceMagic = 0x1face :: Word32
+#elif WORD_SIZE_IN_BITS == 64
+binaryInterfaceMagic = 0x1face64 :: Word32
+#endif
getBinFileWithDict :: Binary a => FilePath -> IO a
getBinFileWithDict file_path = do
getBinFileWithDict :: Binary a => FilePath -> IO a
getBinFileWithDict file_path = do