mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Allow changing RUBY_PATCHLEVEL_STR if RUBY_PATCHLEVEL == -1 (#8578)
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
parent
32baa2c7df
commit
68df43788d
10
version.h
10
version.h
@ -55,11 +55,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if RUBY_PATCHLEVEL == -1
|
#if RUBY_PATCHLEVEL == -1
|
||||||
#define RUBY_PATCHLEVEL_STR "dev"
|
# ifdef RUBY_PATCHLEVEL_NAME
|
||||||
|
# define RUBY_PATCHLEVEL_STR STRINGIZE(RUBY_PATCHLEVEL_NAME)
|
||||||
|
# else
|
||||||
|
# define RUBY_PATCHLEVEL_STR "dev"
|
||||||
|
# endif
|
||||||
#elif defined RUBY_ABI_VERSION
|
#elif defined RUBY_ABI_VERSION
|
||||||
#error RUBY_ABI_VERSION is defined in non-development branch
|
# error RUBY_ABI_VERSION is defined in non-development branch
|
||||||
#else
|
#else
|
||||||
#define RUBY_PATCHLEVEL_STR ""
|
# define RUBY_PATCHLEVEL_STR ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* RUBY_TOPLEVEL_VERSION_H */
|
#endif /* RUBY_TOPLEVEL_VERSION_H */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user