X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Foreign%2FStorable.hs;h=cfe0524d42f4e0660485bf64b2718cd3fe8303b6;hb=6a463e0ba463d2b571796ff15324eb8a6e1dcfa1;hp=31b1b94813b1d41cc5ccb05ad7f2e5db0b621126;hpb=7d090bf5e03ee22db47edfd73a0b542b32408704;p=haskell-directory.git diff --git a/Foreign/Storable.hs b/Foreign/Storable.hs index 31b1b94..cfe0524 100644 --- a/Foreign/Storable.hs +++ b/Foreign/Storable.hs @@ -1,4 +1,4 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# OPTIONS_GHC -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | -- Module : Foreign.Storable @@ -37,7 +37,7 @@ import NHC.FFI (Storable(..),Ptr,FunPtr,StablePtr import Control.Monad ( liftM ) #include "MachDeps.h" -#include "ghcconfig.h" +#include "HsBaseConfig.h" #ifdef __GLASGOW_HASKELL__ import GHC.Storable @@ -199,7 +199,7 @@ STORABLE(Char,SIZEOF_HSCHAR,ALIGNMENT_HSCHAR, STORABLE(Int,SIZEOF_HSINT,ALIGNMENT_HSINT, readIntOffPtr,writeIntOffPtr) -#ifdef __GLASGOW_HASKELL__ +#ifndef __NHC__ STORABLE(Word,SIZEOF_HSWORD,ALIGNMENT_HSWORD, readWordOffPtr,writeWordOffPtr) #endif