diff options
author | Ian Lynagh <igloo@earth.li> | 2009-06-09 12:17:05 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-06-09 12:17:05 +0000 |
commit | ad379ff7e22681c09ec7b50bc00d2d6cd3ae3263 (patch) | |
tree | 00d8074a4af1e2250f0707db9191b0f374f6d31b /includes/Stg.h | |
parent | 1a660e030bd3aaaa34adfea77d72856cdb48479e (diff) | |
download | haskell-ad379ff7e22681c09ec7b50bc00d2d6cd3ae3263.tar.gz |
Define _BSD_SOURCE in Stg.h
This means that, on Linux, we get functions like gamma defined when we
#include math.h
Diffstat (limited to 'includes/Stg.h')
-rw-r--r-- | includes/Stg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/Stg.h b/includes/Stg.h index 341cda3668..06a866256e 100644 --- a/includes/Stg.h +++ b/includes/Stg.h @@ -35,6 +35,10 @@ // 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) # define _ISOC99_SOURCE + +// We need _BSD_SOURCE so that math.h defines things like gamma +// on Linux +# define _BSD_SOURCE #endif #if IN_STG_CODE == 0 |