mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to be
checked. * ext/tk/{tcltklib.c,tkutil/tkutil.c}: check macros for each headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3cc2ee1ed
commit
3e7b91eebd
5 changed files with 15 additions and 9 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Tue Jul 15 21:58:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to be
|
||||||
|
checked.
|
||||||
|
|
||||||
|
* ext/tk/{tcltklib.c,tkutil/tkutil.c}: check macros for each headers.
|
||||||
|
|
||||||
Tue Jul 15 21:45:41 2008 Akinori MUSHA <knu@iDaemons.org>
|
Tue Jul 15 21:45:41 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* ext/tk/extconf.rb, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: Do
|
* ext/tk/extconf.rb, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: Do
|
||||||
|
|
|
@ -5,8 +5,6 @@ require 'mkmf'
|
||||||
is_win32 = (/mswin|mingw|cygwin|bccwin|wince/ =~ RUBY_PLATFORM)
|
is_win32 = (/mswin|mingw|cygwin|bccwin|wince/ =~ RUBY_PLATFORM)
|
||||||
#is_macosx = (/darwin/ =~ RUBY_PLATFORM)
|
#is_macosx = (/darwin/ =~ RUBY_PLATFORM)
|
||||||
|
|
||||||
have_header("ruby/signal.h")
|
|
||||||
have_header("ruby/encoding.h")
|
|
||||||
have_func("ruby_native_thread_p", "ruby.h")
|
have_func("ruby_native_thread_p", "ruby.h")
|
||||||
have_func("rb_errinfo", "ruby.h")
|
have_func("rb_errinfo", "ruby.h")
|
||||||
have_func("rb_safe_level", "ruby.h")
|
have_func("rb_safe_level", "ruby.h")
|
||||||
|
|
|
@ -10,12 +10,13 @@
|
||||||
|
|
||||||
#ifdef HAVE_RUBY_SIGNAL_H
|
#ifdef HAVE_RUBY_SIGNAL_H
|
||||||
#include "ruby/signal.h"
|
#include "ruby/signal.h"
|
||||||
|
#else
|
||||||
|
#include "rubysig.h"
|
||||||
|
#endif
|
||||||
#ifdef HAVE_RUBY_ENCODING_H
|
#ifdef HAVE_RUBY_ENCODING_H
|
||||||
#include "ruby/encoding.h"
|
#include "ruby/encoding.h"
|
||||||
#endif
|
#endif
|
||||||
#else
|
#ifndef HAVE_RUBY_RUBY_H
|
||||||
/* #include "ruby.h" */
|
|
||||||
#include "rubysig.h"
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ end
|
||||||
|
|
||||||
if has_tk
|
if has_tk
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
have_header("ruby/ruby.h")
|
|
||||||
have_func("rb_obj_instance_exec", "ruby.h")
|
have_func("rb_obj_instance_exec", "ruby.h")
|
||||||
have_func("rb_sym_to_s", "ruby.h")
|
have_func("rb_sym_to_s", "ruby.h")
|
||||||
have_func("strndup", "string.h")
|
have_func("strndup", "string.h")
|
||||||
|
|
|
@ -13,11 +13,12 @@
|
||||||
|
|
||||||
#ifdef HAVE_RUBY_SIGNAL_H
|
#ifdef HAVE_RUBY_SIGNAL_H
|
||||||
#include "ruby/signal.h"
|
#include "ruby/signal.h"
|
||||||
|
#else
|
||||||
|
#include "rubysig.h"
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_RUBY_ST_H
|
||||||
#include "ruby/st.h"
|
#include "ruby/st.h"
|
||||||
#else
|
#else
|
||||||
/* #include "ruby.h" */
|
|
||||||
#include "rubysig.h"
|
|
||||||
#include "version.h"
|
|
||||||
#include "st.h"
|
#include "st.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue