On 7/6/2017 5:04 PM, Paul Eggert wrote:
Bruno Haible wrote:
I guess that this would not work:
#include <stdio.h>
#include "unlocked-io.h"
would not make the unlocked IO routines visible, because <stdio.h>
gets skipped
when it gets included a second time. Right?
If we treat __UNIX_PUTC like we treat _GNU_SOURCE then we should be OK,
since __UNIX_PUTC will be defined in config.h and thus the first
<stdio.h> will see it.
I found out what the issue is. The OpenVMS stdio.h file makes the
unlocked IO routines only available as macros. There is no declaration.
Configure detects the macros, and that there is no declaration of them.
The unlocked-io.h since the HAVE_DECL_FPUTS_UNLOCKED is not defined,
redefines the "fputc_unlocked" to not work.
So unlocked-io.h would need to be modified to not replace the OpenVMS
stdio.h macros if they exist.
Regards,
-John