From: Nikolai Weibull Date: 2011-11-17T16:18:33+09:00 Subject: [ruby-core:41093] Re: [ruby-core:41092] Re: Why doesn’t mkmf’s have_macro add a HAVE_X to $defs? On Thu, Nov 17, 2011 at 07:30, Nobuyoshi Nakada wrote: > At Thu, 17 Nov 2011 03:24:31 +0900, > Nikolai Weibull wrote in [ruby-core:41079]: >> Why doesn't mkmf's have_macro add a HAVE_X to $defs if the macro is defined? > You can simply use "#ifdef X". ��Why do you need a macro just > tells if another macro is defined? True, but I wanted to simplify my checks for rb_long2int, which can be either a macro or a function. I guess #if defined(HAVE_RB_LONG2INT) || defined(rb_long2int) isn���t as bad as I initially thought.