summaryrefslogtreecommitdiff
path: root/includes/Stg.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2008-05-12 10:38:47 +0000
committerSimon Marlow <marlowsd@gmail.com>2008-05-12 10:38:47 +0000
commitdcf739bd7fb7de140be3bafb4ce211e2e5c7bba9 (patch)
tree6f17822c4c2bfbf5b2d1dc51e0321383909a01f5 /includes/Stg.h
parent89eac8928317774fdc3f283d78d3ff3cb315db5e (diff)
downloadhaskell-dcf739bd7fb7de140be3bafb4ce211e2e5c7bba9.tar.gz
FIX #1861: floating-point constants for infinity and NaN in via-C
Diffstat (limited to 'includes/Stg.h')
-rw-r--r--includes/Stg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/Stg.h b/includes/Stg.h
index 7f37783f4a..35f4eda631 100644
--- a/includes/Stg.h
+++ b/includes/Stg.h
@@ -31,6 +31,9 @@
*/
#ifndef IN_STG_CODE
# define IN_STG_CODE 1
+# define _ISOC99_SOURCE
+// Turn on C99 for .hc code. This gives us the INFINITY and NAN
+// constants from math.h, which we occasionally need to use in .hc (#1861)
#endif
#if IN_STG_CODE == 0