Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ad379ff7
Commit
ad379ff7
authored
Jun 09, 2009
by
Ian Lynagh
Browse files
Define _BSD_SOURCE in Stg.h
This means that, on Linux, we get functions like gamma defined when we #include math.h
parent
1a660e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Stg.h
View file @
ad379ff7
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment