gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] several messages


From: Fred Wright
Subject: Re: [gpsd-dev] several messages
Date: Mon, 15 Aug 2016 17:07:47 -0700 (PDT)

On Mon, 15 Aug 2016, Greg Troxel wrote:
> "Gary E. Miller" <address@hidden> writes:
>
> >> It appears that the "officially recommended" way to get a
> >> C99-compliant compiler is to invoke it as 'c99', rather than as
> >> 'cc' (or 'gcc').
> >
> > Not that I can see.  The official way, the C99 specified way, is to
> > declare this define: _ISOC99_SOURCE
> >
> > Since gpsd requires C99 compliance, annd that is part of the C99 standard,
> > I'm gonna add it to the Sonstruct right now.
>
> The other thing that works with gcc and clang is to add --std=c99.  I am
> not sure if that is duplicative with the define you mentioned, but it
> seems to be the normal way to tell the compiler to disable gcc
> extensions and to follow the C99 standard as strictly as it can.

However, that's specific to gcc/clang.  The point of the POSIX 'c99'
command (when it exists) is to hide such details.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html

Fred Wright



reply via email to

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