summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-05-10 08:51:25 +0200
committerBen Gamari <ben@smart-cactus.org>2016-05-10 12:02:14 +0200
commit3ca78062968f7ab6efff82122101e6f91b8c2cef (patch)
tree6e24c14c9dd0287e080b090449515c588ecb51f2 /includes
parent0597493293eeea9b966697471d443fb20025bbf9 (diff)
downloadhaskell-3ca78062968f7ab6efff82122101e6f91b8c2cef.tar.gz
stg/Types.h: Fix comment and #include
Diffstat (limited to 'includes')
-rw-r--r--includes/stg/Types.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/stg/Types.h b/includes/stg/Types.h
index 48201b1c55..1a61c8bb46 100644
--- a/includes/stg/Types.h
+++ b/includes/stg/Types.h
@@ -25,10 +25,12 @@
* "C++ implementations should define these macros only when
* __STDC_LIMIT_MACROS is defined before <stdint.h> is included."
*
- * C++11 does not require it anymore. Remove once we upgrade to C++11 or newer.
+ * So we need to define it for now to compile with C++ compilers.
+ * However, C++11 does not require it anymore so we can remove this once we
+ * upgrade to requiring C++11 or newer.
*/
#define __STDC_LIMIT_MACROS
-#import <inttypes.h>
+#include <inttypes.h>
/*
@@ -122,7 +124,7 @@ typedef int32_t StgInt;
typedef uint32_t StgWord;
typedef int16_t StgHalfInt;
-typedef uint16_s StgHalfWord;
+typedef uint16_t StgHalfWord;
#define STG_INT_MIN INT32_MIN
#define STG_INT_MAX INT32_MAX