From 1143c0e63ab9925697dcd553bbdb65aa8d51fdb5 Mon Sep 17 00:00:00 2001 From: Roman Leshchinskiy Date: Fri, 6 Jul 2007 04:56:49 +0000 Subject: [PATCH] FIX BUILD (OS X): Include correct gmp.h if using GMP.framework On OS X, we have to #include if we are using GMP.framework. Before the recent GMP changes, gcc (incorrectly) used the gmp.h supplied by ghc but that is gone now. --- includes/Regs.h | 4 ++++ includes/Rts.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/includes/Regs.h b/includes/Regs.h index f2f7082..0bfde5b 100644 --- a/includes/Regs.h +++ b/includes/Regs.h @@ -22,7 +22,11 @@ #ifndef REGS_H #define REGS_H +#if defined(HAVE_FRAMEWORK_GMP) +#include +#else #include "gmp.h" // Needs MP_INT definition +#endif /* * Spark pools: used to store pending sparks diff --git a/includes/Rts.h b/includes/Rts.h index 7375798..d009618 100644 --- a/includes/Rts.h +++ b/includes/Rts.h @@ -145,7 +145,11 @@ extern void _assertFail (const char *, unsigned int); #include "SMP.h" /* GNU mp library */ +#if defined(HAVE_FRAMEWORK_GMP) +#include +#else #include "gmp.h" +#endif /* Macros for STG/C code */ #include "Block.h" -- 1.7.10.4