Commit 1143c0e6 authored by rl@cse.unsw.edu.au's avatar rl@cse.unsw.edu.au

FIX BUILD (OS X): Include correct gmp.h if using GMP.framework

On OS X, we have to #include <GMP/gmp.h> 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. 
parent 9c2ac80e
......@@ -22,7 +22,11 @@
#ifndef REGS_H
#define REGS_H
#if defined(HAVE_FRAMEWORK_GMP)
#include <GMP/gmp.h>
#else
#include "gmp.h" // Needs MP_INT definition
#endif
/*
* Spark pools: used to store pending sparks
......
......@@ -145,7 +145,11 @@ extern void _assertFail (const char *, unsigned int);
#include "SMP.h"
/* GNU mp library */
#if defined(HAVE_FRAMEWORK_GMP)
#include <GMP/gmp.h>
#else
#include "gmp.h"
#endif
/* Macros for STG/C code */
#include "Block.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment