зеркало из https://github.com/github/ruby.git
Allow changing RUBY_PATCHLEVEL_STR if RUBY_PATCHLEVEL == -1 (#8578)
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
Родитель
32baa2c7df
Коммит
68df43788d
10
version.h
10
version.h
|
@ -55,11 +55,15 @@
|
|||
#endif
|
||||
|
||||
#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
|
||||
#error RUBY_ABI_VERSION is defined in non-development branch
|
||||
# error RUBY_ABI_VERSION is defined in non-development branch
|
||||
#else
|
||||
#define RUBY_PATCHLEVEL_STR ""
|
||||
# define RUBY_PATCHLEVEL_STR ""
|
||||
#endif
|
||||
|
||||
#endif /* RUBY_TOPLEVEL_VERSION_H */
|
||||
|
|
Загрузка…
Ссылка в новой задаче