diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/HaskellConstants.hs | 5 | ||||
-rw-r--r-- | includes/mkDerivedConstants.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/includes/HaskellConstants.hs b/includes/HaskellConstants.hs index 33108f2eb7..5b9a5ba1ac 100644 --- a/includes/HaskellConstants.hs +++ b/includes/HaskellConstants.hs @@ -42,11 +42,6 @@ dOUBLE_SIZE = SIZEOF_DOUBLE wORD64_SIZE :: Int wORD64_SIZE = 8 --- Size of a word, in bytes - -wORD_SIZE :: Int -wORD_SIZE = SIZEOF_HSWORD - -- Define a fixed-range integral type equivalent to the target Int/Word #if SIZEOF_HSWORD == 4 diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c index 609c7aed31..a6d2230d6e 100644 --- a/includes/mkDerivedConstants.c +++ b/includes/mkDerivedConstants.c @@ -683,6 +683,9 @@ main(int argc, char *argv[]) // own stack check (see bug #1466). constantInt("aP_STACK_SPLIM", AP_STACK_SPLIM); + // Size of a word, in bytes + constantInt("wORD_SIZE", SIZEOF_HSWORD); + switch (mode) { case Gen_Haskell_Type: printf(" } deriving (Read, Show)\n"); |