diff options
author | Nicolas Williams <nico@cryptonector.com> | 2021-09-06 18:26:14 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2021-09-06 22:17:57 -0500 |
commit | a9ce7244b4241c457bace5f7d7871268ed00c40b (patch) | |
tree | 125a6be0229414bdbadb2d5b6ad8716270a3ec0a /src/jv_dtoa_tsd.c | |
parent | 34182cca7babec086bbc93dec209275be896ca9e (diff) |
Fix Windows build for 1.7 release (moar)
Diffstat (limited to 'src/jv_dtoa_tsd.c')
-rw-r--r-- | src/jv_dtoa_tsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jv_dtoa_tsd.c b/src/jv_dtoa_tsd.c index cafd141e..cfccd40c 100644 --- a/src/jv_dtoa_tsd.c +++ b/src/jv_dtoa_tsd.c @@ -21,7 +21,7 @@ static void tsd_dtoa_ctx_dtor(void *ctx) { #ifndef WIN32 static #endif -void tsd_dtoa_ctx_fini() { +void jv_tsd_dtoa_ctx_fini() { struct dtoa_context *ctx = pthread_getspecific(dtoa_ctx_key); tsd_dtoa_ctx_dtor(ctx); pthread_setspecific(dtoa_ctx_key, NULL); @@ -30,19 +30,19 @@ void tsd_dtoa_ctx_fini() { #ifndef WIN32 static #endif -void tsd_dtoa_ctx_init() { +void jv_tsd_dtoa_ctx_init() { if (pthread_key_create(&dtoa_ctx_key, tsd_dtoa_ctx_dtor) != 0) { fprintf(stderr, "error: cannot create thread specific key"); abort(); } #ifndef WIN32 - atexit(tsd_dtoa_ctx_fini); + atexit(jv_tsd_dtoa_ctx_fini); #endif } inline struct dtoa_context *tsd_dtoa_context_get() { #ifndef WIN32 - pthread_once(&dtoa_ctx_once, tsd_dtoa_ctx_init); // cannot fail + pthread_once(&dtoa_ctx_once, jv_tsd_dtoa_ctx_init); // cannot fail #endif struct dtoa_context *ctx = (struct dtoa_context*)pthread_getspecific(dtoa_ctx_key); if (!ctx) { |