summaryrefslogtreecommitdiffstats
path: root/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'version.h')
-rw-r--r--version.h8
1 files changed, 8 insertions, 0 deletions
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