From: Rick DeNatale Date: 2009-02-20T06:24:56+09:00 Subject: Re: How to do conditional compile for Ruby 1.9 in a C extens --00163691ff328bff5704634c2b05 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit did you include version.h? On Thu, Feb 19, 2009 at 3:59 PM, Jason Garber wrote: > It's not working for me. In my C file I tested the presence of those > variables like so: > > #ifdef RUBY_VERSION_MAJOR > printf("RUBY_VERSION_MAJOR defined\n"); > #endif > #ifndef RUBY_VERSION_MAJOR > printf("RUBY_VERSION_MAJOR NOT defined ******\n"); > #endif > > and it outputs RUBY_VERSION_MAJOR NOT defined ****** > > Why aren't the RUBY_VERSION constants defined? > -- > Posted via http://www.ruby-forum.com/. > > -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --00163691ff328bff5704634c2b05--