aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/tcltklib.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-15 12:58:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-15 12:58:23 +0000
commit3e7b91eebd1e30ba0cc12e35757ac3abba75c2ce (patch)
tree614069c56a1aaa800ba5faaea46a8878b191a7ec /ext/tk/tcltklib.c
parente3cc2ee1ed8d16f7920459641ad66f0f1afbb8d9 (diff)
downloadruby-3e7b91eebd1e30ba0cc12e35757ac3abba75c2ce.tar.gz
* 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
Diffstat (limited to 'ext/tk/tcltklib.c')
-rw-r--r--ext/tk/tcltklib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index db31846e61..00a3256a82 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -10,12 +10,13 @@
#ifdef HAVE_RUBY_SIGNAL_H
#include "ruby/signal.h"
+#else
+#include "rubysig.h"
+#endif
#ifdef HAVE_RUBY_ENCODING_H
#include "ruby/encoding.h"
#endif
-#else
-/* #include "ruby.h" */
-#include "rubysig.h"
+#ifndef HAVE_RUBY_RUBY_H
#include "version.h"
#endif