Project

General

Profile

Actions

Bug #1236

closed

RUBY_VERSION not defined

Added by cfis (Charlie Savage) almost 16 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-01) [i386-mswin32_90]
Backport:
[ruby-core:22614]

Description

=begin
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 <st.h>
#else
#include <ruby/st.h>
#endif

Right now that doesn't work because RUBY_VERSION is not defined.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0