diff options
author | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-23 15:08:47 +0000 |
---|---|---|
committer | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-23 15:08:47 +0000 |
commit | 1817724c4f277e3113e48a555a695116a90a08ab (patch) | |
tree | 4c369e6cbbbf3ca6040a81f26b393dce27d2ff3a | |
parent | 18ee122e5e407b3be2b31c6a484a0a64878bff16 (diff) | |
download | ruby-1817724c4f277e3113e48a555a695116a90a08ab.tar.gz |
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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | complex.c | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Thu Sep 24 00:00:17 2015 Rei Odaira <Rei.Odaira@gmail.com> + + * 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] + Wed Sep 23 22:22:38 2015 Zachary Scott <zzak@ruby-lang.org> * ext/openssl/ossl_pkcs12*: Remove svn commit id macro @@ -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 |