]> Savannah Git Hosting - gnulib.git/commit
unlocked-io: do not redefine getc_unlocked etc.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Mar 2021 08:27:25 +0000 (00:27 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Mar 2021 08:27:59 +0000 (00:27 -0800)
commit3d15181e1eb6db8e4471c2dcee6104b51d11b8b2
treeff4894f23c4d92c01036635ca64d20e8ce3906b1
parent4e7f59b25f2b3293d581fe7b4a83a6e706db9825
unlocked-io: do not redefine getc_unlocked etc.

I ran into this problem on AIX 7.1 with GNU Tar, which
enables visibility of getc_unlocked etc. after testing
whether they’re declared, causing argp-namefrob.h and
unlocked-io.h to redefine the macros.
* lib/argp-namefrob.h, lib/unlocked-io.h:
(clearerr_unlocked, feof_unlocked ferror_unlocked)
(fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
(fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
(putc_unlocked, putchar_unlocked): Do not define if already defined.
ChangeLog
lib/argp-namefrob.h
lib/unlocked-io.h