diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-03 09:19:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 09:19:54 -0700 |
commit | 68df43788dc237a1071f02b2d82768f844696315 (patch) | |
tree | fec29df855029297abe06f073bb7b1465a0c5e6e /version.h | |
parent | 32baa2c7df12b1f180e170fc7c022479e0ed6b78 (diff) | |
download | ruby-68df43788dc237a1071f02b2d82768f844696315.tar.gz |
Allow changing RUBY_PATCHLEVEL_STR if RUBY_PATCHLEVEL == -1 (#8578)
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Diffstat (limited to 'version.h')
-rw-r--r-- | version.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 */ |