delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/05/29/01:58:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Fri, 29 May 2015 08:58:02 +0300
From: "Eli Zaretskii (eliz AT gnu DOT org)" <djgpp AT delorie DOT com>
Subject: Re: ANNOUNCE: DJGPP 2.05 beta 1
In-reply-to: <CAB9Rao9p1G-x7DhnkUKocouJCxMktAor4pxeujFT4BSdH9_KmQ@mail.gmail.com>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp AT delorie DOT com
Message-id: <83k2vsvsb9.fsf@gnu.org>
References: <201505042003 DOT t44K3odg011007 AT delorie DOT com> <CAA2C=vCr1BfJV6vVCnbht0i3w+okeCu+5ALOXZATikripy61Wg AT mail DOT gmail DOT com> <CAA2C=vD5zCtZENrf+DhcP9hFuqUwZ08MqqmR5qd9ZaOD-b9uCQ AT mail DOT gmail DOT com> <CAB9Rao9p1G-x7DhnkUKocouJCxMktAor4pxeujFT4BSdH9_KmQ AT mail DOT gmail DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Thu, 28 May 2015 15:00:35 -0700
> From: "Louis Santillan (lpsantil AT gmail DOT com)" <djgpp AT delorie DOT com>
> 
> In porting, I noticed that using `cc -std=c99` confuses the djgpp
> headers such that the main bodies of the headers get nullified for
> io.h, fcntl.h, and unistd.h.  This is because `-std=c99` implies
> `__STRICT_ANSI__` which is guarded against in those headers and
> probably others.  The simple work around is to instead use
> `-std=gnu99` which does not imply `__STRICT_ANSI__`  and brings in the
> needed function prototypes (isatty(), setmode(), a couple others).

Don't use -std=c99, unless you are building a program that doesn't use
any features not in the ANSI C99 standard.

I think you want -std=gnu99 instead.  That option doesn't disable
non-ANSI features, but does assume C99 features supported.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019