ruby-changes:56188
From: Nobuyoshi <ko1@a...>
Date: Sat, 22 Jun 2019 01:16:54 +0900 (JST)
Subject: [ruby-changes:56188] Nobuyoshi Nakada: 2f2fc939eb (trunk): Always define RUBY_RELEASE_DATETIME
https://git.ruby-lang.org/ruby.git/commit/?id=2f2fc939eb From 2f2fc939eb13af9baa325f154872f60cdeff973c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 22 Jun 2019 01:16:23 +0900 Subject: Always define RUBY_RELEASE_DATETIME diff --git a/version.h b/version.h index 3f6d821..f9ac368 100644 --- a/version.h +++ b/version.h @@ -52,9 +52,6 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L52 # define RUBY_BRANCH_NAME "trunk" # endif # define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "RUBY_REVISION -# ifndef RUBY_RELEASE_DATETIME -# define RUBY_RELEASE_DATETIME RUBY_RELEASE_DATE -# endif # else # define RUBY_REVISION_STR " revision "RUBY_REVISION # endif @@ -62,6 +59,10 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L59 # define RUBY_REVISION "HEAD" # define RUBY_REVISION_STR "" #endif +#if !defined RUBY_RELEASE_DATETIME || RUBY_PATCHLEVEL != -1 +# undef RUBY_RELEASE_DATETIME +# define RUBY_RELEASE_DATETIME RUBY_RELEASE_DATE +#endif # define RUBY_DESCRIPTION_WITH(opt) \ "ruby "RUBY_VERSION \ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/