diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 10:25:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 10:25:41 +0000 |
commit | 36ef9417cfe55703f372b8aa26d93ee8b4e220ff (patch) | |
tree | 71c0c9071ac4a357342160cb11fc0051ea1dfaaf /version.h | |
parent | 27b191f39260cd8be7ff7cdae46e50c359f96c3d (diff) | |
download | ruby-36ef9417cfe55703f372b8aa26d93ee8b4e220ff.tar.gz ruby-36ef9417cfe55703f372b8aa26d93ee8b4e220ff.tar.xz ruby-36ef9417cfe55703f372b8aa26d93ee8b4e220ff.zip |
* configure.in (RUBY_LIB_VERSION_STYLE): sets full or minor style
not to show RUBY_VERSION_MAJOR and so on.
* version.h (RUBY_LIB_VERSION): makes from RUBY_LIB_VERSION_STYLE.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.h')
-rw-r--r-- | version.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -24,6 +24,14 @@ RUBY_EXTERN const char ruby_copyright[]; #define RUBY_BIRTH_MONTH 2 #define RUBY_BIRTH_DAY 24 +#if !defined RUBY_LIB_VERSION && defined RUBY_LIB_VERSION_STYLE +# if RUBY_LIB_VERSION_STYLE == 3 +# define RUBY_LIB_VERSION STRINGIZE(RUBY_VERSION_MAJOR)"."STRINGIZE(RUBY_VERSION_MINOR)"."STRINGIZE(RUBY_VERSION_TEENY) +# elif RUBY_LIB_VERSION_STYLE == 2 +# define RUBY_LIB_VERSION STRINGIZE(RUBY_VERSION_MAJOR)"."STRINGIZE(RUBY_VERSION_MINOR) +# endif +#endif + #if RUBY_PATCHLEVEL == -1 #define RUBY_PATCHLEVEL_STR "dev" #else |