Skip to content

Commit 3bbd45d

Browse files
committed
Fix RUBY_API_VERSION_NAME fallback definition
1 parent c32eb72 commit 3bbd45d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

version.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
# endif
3232
# define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "RUBY_REVISION
3333
# else
34-
# define RUBY_API_VERSION_NAME RUBY_API_VERSION_STR
3534
# define RUBY_REVISION_STR " revision "RUBY_REVISION
3635
# endif
3736
#else
3837
# define RUBY_REVISION "HEAD"
3938
# define RUBY_REVISION_STR ""
4039
#endif
40+
#ifndef RUBY_API_VERSION_NAME
41+
# define RUBY_API_VERSION_NAME RUBY_API_VERSION_STR
42+
#endif
4143
#if !defined RUBY_RELEASE_DATETIME || RUBY_PATCHLEVEL != -1
4244
# undef RUBY_RELEASE_DATETIME
4345
# define RUBY_RELEASE_DATETIME RUBY_RELEASE_DATE

0 commit comments

Comments
 (0)