From 36ef9417cfe55703f372b8aa26d93ee8b4e220ff Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 6 Mar 2009 10:25:41 +0000 Subject: * 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 --- version.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'version.h') diff --git a/version.h b/version.h index f998043db..88717e649 100644 --- a/version.h +++ b/version.h @@ -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 -- cgit