[project @ 2000-11-13 17:17:40 by simonmar]
authorsimonmar <unknown>
Mon, 13 Nov 2000 17:17:40 +0000 (17:17 +0000)
committersimonmar <unknown>
Mon, 13 Nov 2000 17:17:40 +0000 (17:17 +0000)
Pull in inttypes.h if we have it, as the second-favourite option after
stdint.h.  This should fix problems building the readline cbits on Solaris.

ghc/includes/HsFFI.h

index 597cdef..7ae1945 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: HsFFI.h,v 1.8 2000/11/07 17:05:47 simonmar Exp $
+ * $Id: HsFFI.h,v 1.9 2000/11/13 17:17:40 simonmar Exp $
  *
  * (c) The GHC Team, 2000
  *
@@ -25,6 +25,8 @@
  */
 #define __STDC_LIMIT_MACROS
 #include <stdint.h>
+#elif defined(HAVE_INTTYPES_H)
+#include <inttypes.h>
 #else
 /* second best guess (e.g. on Solaris) */
 #include <limits.h>