summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authorodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-23 15:08:47 +0000
committerodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-23 15:08:47 +0000
commitc3b02d572c86ba128c25a22d00b3ad3c36ffe295 (patch)
tree4c369e6cbbbf3ca6040a81f26b393dce27d2ff3a /complex.c
parentf9a9193ae0aad2ebd0e18402d83554082a84d3b6 (diff)
complex.c: ruby/config.h must be included before math.h
because it defines _LARGE_FILES on AIX and _LARGE_FILES must be defined before sys/types.h is included from math.h. [Bug #11483] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index beaf6713a1..e3c20139f2 100644
--- a/complex.c
+++ b/complex.c
@@ -5,6 +5,7 @@
which is written in ruby.
*/
+#include "ruby/config.h"
#if defined _MSC_VER
/* Microsoft Visual C does not define M_PI and others by default */
# define _USE_MATH_DEFINES 1