diff options
author | Bruno Haible <bruno@clisp.org> | 2019-12-23 08:55:35 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-12-23 08:55:35 +0100 |
commit | 2028f2854fd5b01fe71d3bac1909a031fd5a9d00 (patch) | |
tree | cecda16b5e609b6b1070fd793c6a4744b552e12e /m4 | |
parent | 0da79aa8083359d3a97f7c743a28bd9f380caa92 (diff) | |
download | gnulib-2028f2854fd5b01fe71d3bac1909a031fd5a9d00.tar.gz |
setlocale-null: Export the lock function also on non-Windows platforms.
* lib/setlocale-lock.c (DLL_EXPORTED): New macro.
(gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
* m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
* modules/setlocale-null (configure.ac): Invoke it.
(Files): Add m4/visibility.m4.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/setlocale_null.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/setlocale_null.m4 b/m4/setlocale_null.m4 index eff6e76ab6..465ef1127c 100644 --- a/m4/setlocale_null.m4 +++ b/m4/setlocale_null.m4 @@ -90,3 +90,9 @@ AC_DEFUN([gl_FUNC_SETLOCALE_NULL], dnl with gcc or xlc, and empty otherwise. AC_SUBST([LIB_SETLOCALE_NULL]) ]) + +# Prerequisites of lib/setlocale-lock.c. +AC_DEFUN([gl_PREREQ_SETLOCALE_LOCK], +[ + gl_VISIBILITY +]) |