summaryrefslogtreecommitdiff
path: root/template/id.h.tmpl
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-12 11:49:32 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-12 11:49:32 (GMT)
commite8c539a7e31d6143b314591375bbd2187997d25a (patch)
tree0019b2b54d8343b623cde334c51ad4a23f2878bb /template/id.h.tmpl
parent89c7efed6f7fe1d0e550acd4fadd39d67b0516f9 (diff)
* template/id.h.tmpl: suppress all warning: "SUPPORT_JOKE" is not
defined. [ruby-dev:42730] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/id.h.tmpl')
-rw-r--r--template/id.h.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/template/id.h.tmpl b/template/id.h.tmpl
index 0a4693e..29548de 100644
--- a/template/id.h.tmpl
+++ b/template/id.h.tmpl
@@ -50,6 +50,8 @@ end
#include "parse.h"
#endif
+#include "vm_opts.h" /* for SUPPORT_JOKE */
+
#define symIFUNC ID2SYM(idIFUNC)
#define symCFUNC ID2SYM(idCFUNC)
@@ -101,13 +103,13 @@ enum ruby_method_ids {
t__send__,
tInitialize,
tUScore,
-#if defined SUPPORT_JOKE && SUPPORT_JOKE
+#if SUPPORT_JOKE
tBitblt,
tAnswer,
#endif
tLAST_ID,
#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
-#if defined SUPPORT_JOKE && SUPPORT_JOKE
+#if SUPPORT_JOKE
TOKEN2ID(Bitblt),
TOKEN2ID(Answer),
#endif