summaryrefslogtreecommitdiff
path: root/ghc/includes/HsFFI.h
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-10-29 11:33:37 +0000
committersimonmar <unknown>2001-10-29 11:33:37 +0000
commitd7416a5e4d75fa32190a3ea96e5d9c274a33e33a (patch)
tree04424467ead65743cacaef7827fef420848f4f7b /ghc/includes/HsFFI.h
parent2660fbb9fd95646f8eb2f4f953711853bd85cc0e (diff)
downloadhaskell-d7416a5e4d75fa32190a3ea96e5d9c274a33e33a.tar.gz
[project @ 2001-10-29 11:33:37 by simonmar]
Wrap the include file entry-points in extern "C" { ... } if this is a C++ compiler.
Diffstat (limited to 'ghc/includes/HsFFI.h')
-rw-r--r--ghc/includes/HsFFI.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ghc/includes/HsFFI.h b/ghc/includes/HsFFI.h
index 2b6f35319b..968bff897c 100644
--- a/ghc/includes/HsFFI.h
+++ b/ghc/includes/HsFFI.h
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------------
- * $Id: HsFFI.h,v 1.14 2001/03/28 18:48:46 qrczak Exp $
+ * $Id: HsFFI.h,v 1.15 2001/10/29 11:33:37 simonmar Exp $
*
* (c) The GHC Team, 2000
*
@@ -13,6 +13,10 @@
#ifndef HSFFI_H
#define HSFFI_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* get types from GHC's runtime system */
#include "config.h"
#include "StgTypes.h"
@@ -137,4 +141,10 @@ typedef void* HsForeignObj; /* DEPRECATED */
#define HS_DOUBLE_MAX_EXP DBL_MAX_EXP
#define HS_DOUBLE_MAX_10_EXP DBL_MAX_10_EXP
+/* -------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* HSFFI_H */