C compiler standard (gnu89 vs c99)

277 views
Skip to first unread message

Will Dron

unread,
Nov 13, 2015, 12:13:04 PM11/13/15
to libuv
Hi,

We were wondering if there was any discussion of using C99 instead of gnu89 as the default for libuv? Primarily for portability with non-gcc compilers, which could potentially be an issue with -std=gnu89. 

I checked and the source compiles without any issue using -std=c99 in configure.in.

Thanks,

Will

Saúl Ibarra Corretgé

unread,
Nov 13, 2015, 12:21:05 PM11/13/15
to li...@googlegroups.com
On 13/11/15 17:56, Will Dron wrote:
> Hi,
>
> We were wondering if there was any discussion of using C99 instead of
> gnu89 as the default for libuv? Primarily for portability with non-gcc
> compilers, which could potentially be an issue with -std=gnu89.
>

Hi,

So far we have not seen issues with compilers other than GCC, and the
main reason for using C89 is Windows support, since MSVC doesn't support
C99. (though they have added support for a few features in MSVC 2015)


Regards,

--
Saúl Ibarra Corretgé
http://bettercallsaghul.com
Reply all
Reply to author
Forward
0 new messages