ruby-changes:30546
From: akr <ko1@a...>
Date: Mon, 19 Aug 2013 21:39:18 +0900 (JST)
Subject: [ruby-changes:30546] akr:r42625 (trunk): * include/ruby/defines.h: Fix a compilation error with
akr 2013-08-19 21:39:09 +0900 (Mon, 19 Aug 2013) New Revision: 42625 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42625 Log: * include/ruby/defines.h: Fix a compilation error with i586-mingw32msvc-gcc of gcc-mingw32 package on Debian squeeze. ruby/missing.h should be included before include/ruby/win32.h because struct timespec, used in the clock_gettime declaration in include/ruby/win32.h, is defined in ruby/missing.h instead of system headers. Modified files: trunk/ChangeLog trunk/include/ruby/defines.h trunk/include/ruby/ruby.h Index: include/ruby/defines.h =================================================================== --- include/ruby/defines.h (revision 42624) +++ include/ruby/defines.h (revision 42625) @@ -65,6 +65,8 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L65 #include <setjmpex.h> #endif +#include "ruby/missing.h" + #define RUBY #ifdef __cplusplus Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 42624) +++ include/ruby/ruby.h (revision 42625) @@ -1736,7 +1736,6 @@ rb_special_const_p(VALUE obj) https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1736 } #endif -#include "ruby/missing.h" #include "ruby/intern.h" #if defined(EXTLIB) && defined(USE_DLN_A_OUT) Index: ChangeLog =================================================================== --- ChangeLog (revision 42624) +++ ChangeLog (revision 42625) @@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Aug 19 21:31:35 2013 Tanaka Akira <akr@f...> + + * include/ruby/defines.h: Fix a compilation error with + i586-mingw32msvc-gcc of gcc-mingw32 package on Debian squeeze. + ruby/missing.h should be included before include/ruby/win32.h + because struct timespec, used in the clock_gettime declaration in + include/ruby/win32.h, is defined in ruby/missing.h instead of + system headers. + Mon Aug 19 20:55:12 2013 Koichi Sasada <ko1@a...> * gc.c: fix around GC_DEBUG. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/