]> Savannah Git Hosting - gnulib.git/commit
verror: allow library name-spacing of verror
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Aug 2024 03:04:42 +0000 (20:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Aug 2024 03:13:24 +0000 (20:13 -0700)
commit48384fd1c637a2f683b634a4c3522eccc1b0dfe9
treeb523c3d1e11200cdbc68661f0e9b3169d99d99a7
parent959152ba37964b2056ced0c19721604ab81bfd50
verror: allow library name-spacing of verror

Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2024-08/msg00085.html
* lib/error.c (verror, verror_at_line) [!_LIBC]: #undef only if
the corresponding GNULIB_defined_... macros are defined.
* lib/error.in.h (verror, verror_with_line):
Don't define as macros if they are already defined, or if
_GL_NO_INLINE_ERROR is defined.  This may lose some niceties with GCC
warnings, but the code’s valid.
lib/error.c
lib/error.in.h