gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] several messages


From: Greg Troxel
Subject: Re: [gpsd-dev] several messages
Date: Mon, 15 Aug 2016 20:13:17 -0400
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix)

Fred Wright <address@hidden> writes:

>> 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

Totally fair, but in configure.ac, if you don't find c99, but do find
clang or gcc, and add --std=c99, that helps.

On NetBSD from 5 onward, there is /usr/bin/c99:

#!/bin/sh
exec /usr/bin/cc -std=c99 "$@"

OS X 10.9 has a /usr/bin/c99 that is documented to conform to POSIX.

So I agree it is worth checking for c99 as you say.

Attachment: signature.asc
Description: PGP signature


reply via email to

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