From: Charlie Savage Date: 2009-03-02T08:51:07+09:00 Subject: [ruby-core:22614] [Bug #1236] RUBY_VERSION not defined Bug #1236: RUBY_VERSION not defined http://redmine.ruby-lang.org/issues/show/1236 Author: Charlie Savage Status: Open, Priority: High Category: core, Target version: 1.9.1 ruby -v: ruby 1.9.2dev (2009-03-01) [i386-mswin32_90] Building from trunk with MSVC 2008. ruby/config.h is generated with this line: #define RUBY_LIB_VERSION STRINGIZE(RUBY_VERSION_MAJOR)"."STRINGIZE(RUBY_VERSION_MINOR)"."STRINGIZE(RUBY_VERSION_TEENY) But RUBY_VERSION_MAJOR, RUBY_VERSION_MINOR, RUBY_VERSION_TEENY are not defined in this file or in any file that is installed. They are defined in trunk/version.h but that is not installed. Nor is RUBY_VERSION defined. This is an issue because libxml-ruby uses st.h, and thus needs code that looks like this: #if RUBY_VERSION < "1.9.0" #include #else #include #endif Right now that doesn't work because RUBY_VERSION is not defined. ---------------------------------------- http://redmine.ruby-lang.org