From: Jason Garber Date: 2009-02-20T05:59:37+09:00 Subject: Re: How to do conditional compile for Ruby 1.9 in a C extens 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/.