Skip to content

Commit

Permalink
savepv if threaded, unused I think
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Nov 22, 2023
1 parent 36a082a commit 3e783a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions locale.c
Expand Up @@ -601,6 +601,15 @@ S_positional_newlocale(int mask, const char * locale, locale_t base)
#ifdef HAS_IGNORED_LOCALE_CATEGORIES_
# undef NEWLOCALE_HANDLES_DISPARATE_LC_ALL
#endif

#ifdef USE_THREADS
# define savepv_if_threaded(x) savepv(x)
# define Safefree_if_threaded(x) Safefree(x)
#else
# define savepv_if_threaded(x) (x)
# define Safefree_if_threaded(x)
#endif

#ifdef USE_LOCALE

/* Not all categories need be set to the same locale. This macro determines if
Expand Down

0 comments on commit 3e783a0

Please sign in to comment.