diff options
author | Martin Storsjö <martin@martin.st> | 2020-11-12 10:57:03 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-11-18 11:04:55 +0200 |
commit | 83a03867da128bf9410ae15eb451500ed8c800f5 (patch) | |
tree | e13d1de83d10c535cac7db592bf6f06c0bc09a7d /libcxx | |
parent | 2fa38fa9a651553080620f4c9883d075df2a706e (diff) | |
download | llvm-project-83a03867da128bf9410ae15eb451500ed8c800f5.tar.gz |
[libcxx] Add missing _LIBCPP_FUNC_VIS on a few win32 locale functions
These functions are called directly from the public installed
headers, and thus need to be exported in DLL builds, just like
some other functions in the same header (e.g. snprintf_l).
This fixes e.g. test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_float.pass.cpp
in mingw configurations.
Differential Revision: https://reviews.llvm.org/D91328
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/include/support/win32/locale_win32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/support/win32/locale_win32.h b/libcxx/include/support/win32/locale_win32.h index 8d7779e0ccaf..897c36be70c6 100644 --- a/libcxx/include/support/win32/locale_win32.h +++ b/libcxx/include/support/win32/locale_win32.h @@ -201,8 +201,8 @@ decltype(MB_CUR_MAX) MB_CUR_MAX_L( locale_t __l ); #define strtof_l _strtof_l #define strtold_l _strtold_l #else -float strtof_l(const char*, char**, locale_t); -long double strtold_l(const char*, char**, locale_t); +_LIBCPP_FUNC_VIS float strtof_l(const char*, char**, locale_t); +_LIBCPP_FUNC_VIS long double strtold_l(const char*, char**, locale_t); #endif inline _LIBCPP_INLINE_VISIBILITY int |