summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/-test-/time/leap_second.c2
-rw-r--r--internal.h2
-rw-r--r--time.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/ext/-test-/time/leap_second.c b/ext/-test-/time/leap_second.c
index 214afe2b6b7..8989f7952f6 100644
--- a/ext/-test-/time/leap_second.c
+++ b/ext/-test-/time/leap_second.c
@@ -1,6 +1,6 @@
#include "ruby.h"
-void reset_leap_second_info(void);
+void ruby_reset_leap_second_info(void);
static VALUE
bug_time_s_reset_leap_second_info(VALUE klass)
{
diff --git a/internal.h b/internal.h
index fb7679eace6..2d71eb178f3 100644
--- a/internal.h
+++ b/internal.h
@@ -2057,7 +2057,7 @@ VALUE rb_str_upto_endless_each(VALUE, int (*each)(VALUE, VALUE), VALUE);
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
/* time.c (export) */
-void reset_leap_second_info(void);
+void ruby_reset_leap_second_info(void);
/* util.c (export) */
extern const signed char ruby_digit36_to_number_table[];
diff --git a/time.c b/time.c
index 20a514e2dcb..10ec0f2a368 100644
--- a/time.c
+++ b/time.c
@@ -1099,7 +1099,8 @@ init_leap_second_info(void)
}
/* Use this if you want to re-run init_leap_second_info() */
-void reset_leap_second_info(void)
+void
+ruby_reset_leap_second_info(void)
{
this_year = 0;
}