[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenVMS needs __UNIX_PUTC macro defined for configure tests.

From: John E. Malmberg
Subject: Re: OpenVMS needs __UNIX_PUTC macro defined for configure tests.
Date: Thu, 6 Jul 2017 20:00:15 -0500
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]