ruby-changes:39841
From: odaira <ko1@a...>
Date: Thu, 24 Sep 2015 00:09:02 +0900 (JST)
Subject: [ruby-changes:39841] odaira:r51922 (trunk): complex.c: ruby/config.h must be included before math.h
odaira 2015-09-24 00:08:47 +0900 (Thu, 24 Sep 2015) New Revision: 51922 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51922 Log: 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] Modified files: trunk/ChangeLog trunk/complex.c Index: complex.c =================================================================== --- complex.c (revision 51921) +++ complex.c (revision 51922) @@ -5,6 +5,7 @@ https://github.com/ruby/ruby/blob/trunk/complex.c#L5 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 Index: ChangeLog =================================================================== --- ChangeLog (revision 51921) +++ ChangeLog (revision 51922) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Sep 24 00:00:17 2015 Rei Odaira <Rei.Odaira@g...> + + * 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@r...> * ext/openssl/ossl_pkcs12*: Remove svn commit id macro -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/