diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-10-12 20:12:18 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-10-12 20:12:18 +0800 |
commit | f74f1740067b75042497edbfa6ea457ff75484b9 (patch) | |
tree | 82c13c51f4e39c5dc39a0d313b7675a98abec6bd | |
parent | Update THANKS. (diff) | |
download | xz-f74f1740067b75042497edbfa6ea457ff75484b9.tar.xz |
Build: Update visibility.m4 from Gnulib.
Updating from version 6 -> 8 from upstream. Declarations for variables
and function bodies were added to avoid unnecessary failures with
-Werror.
-rw-r--r-- | m4/visibility.m4 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/m4/visibility.m4 b/m4/visibility.m4 index 9f493bab..f0468e89 100644 --- a/m4/visibility.m4 +++ b/m4/visibility.m4 @@ -1,5 +1,5 @@ -# visibility.m4 serial 6 -dnl Copyright (C) 2005, 2008, 2010-2020 Free Software Foundation, Inc. +# visibility.m4 serial 8 +dnl Copyright (C) 2005, 2008, 2010-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -58,6 +58,11 @@ AC_DEFUN([gl_VISIBILITY], extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); + void dummyfunc (void); + int hiddenvar; + int exportedvar; + int hiddenfunc (void) { return 51; } + int exportedfunc (void) { return 1225736919; } void dummyfunc (void) {} ]], [[]])], |