summaryrefslogtreecommitdiffstats
path: root/ext/tk/tkutil
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/tkutil')
-rw-r--r--ext/tk/tkutil/extconf.rb1
-rw-r--r--ext/tk/tkutil/tkutil.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/tkutil/extconf.rb b/ext/tk/tkutil/extconf.rb
index ed5de0ee6..34b91632e 100644
--- a/ext/tk/tkutil/extconf.rb
+++ b/ext/tk/tkutil/extconf.rb
@@ -7,7 +7,6 @@ end
if has_tk
require 'mkmf'
- have_header("ruby/ruby.h")
have_func("rb_obj_instance_exec", "ruby.h")
have_func("rb_sym_to_s", "ruby.h")
have_func("strndup", "string.h")
diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c
index 98197ee7b..6f35e195d 100644
--- a/ext/tk/tkutil/tkutil.c
+++ b/ext/tk/tkutil/tkutil.c
@@ -13,11 +13,12 @@
#ifdef HAVE_RUBY_SIGNAL_H
#include "ruby/signal.h"
-#include "ruby/st.h"
#else
-/* #include "ruby.h" */
#include "rubysig.h"
-#include "version.h"
+#endif
+#ifdef HAVE_RUBY_ST_H
+#include "ruby/st.h"
+#else
#include "st.h"
#endif