summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-07 14:44:02 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-07 14:44:02 +0000
commitc36d15f206f83100ef1fc8f2bd3b23116c0ee6a1 (patch)
tree9945b3407812a9318e4e522cd0b5b95846866b7b
parent3bbffbc7dd024179777192950ac07b9ef6ca2968 (diff)
* ext/refinement/refinement.c: include ruby/ruby.h instead of the
declaration of rb_warn(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/refinement/refinement.c9
2 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 5afd268ae3..feb44c4a2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 7 23:42:11 2012 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/refinement/refinement.c: include ruby/ruby.h instead of the
+ declaration of rb_warn().
+
Fri Dec 7 16:07:00 2012 Zachary Scott <zachary@zacharyscott.net>
* doc/etc.rd: Removed stale documentation file
diff --git a/ext/refinement/refinement.c b/ext/refinement/refinement.c
index 44ffd2a0b8..6fdc9dbc51 100644
--- a/ext/refinement/refinement.c
+++ b/ext/refinement/refinement.c
@@ -1,11 +1,6 @@
+#include "ruby/ruby.h"
+
void ruby_Init_refinement(void);
-#ifdef __GNUC__
-#define PRINTF_ARGS(decl, string_index, first_to_check) \
- decl __attribute__((format(printf, string_index, first_to_check)))
-#else
-#define PRINTF_ARGS(decl, string_index, first_to_check) decl
-#endif
-PRINTF_ARGS(void rb_warn(const char*, ...), 1, 2);
void
Init_refinement(void)