Re: [PATCH 1/3] remote-testsvn.c: Avoid the getline() GNU extension function
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- Aug 25, 2012, 19:20 UTC
- Message-ID
- <CABPQNSZfUO-vjVmBU2+CMbxTXMj_HT=cTFfVbnehUjqOL-vkxw@mail.gmail.com>
- In-Reply-To
- <503907B3.9040101@ramsay1.demon.co.uk>
On Sat, Aug 25, 2012 at 7:13 PM, Ramsay Jones <ramsay@ramsay1.demon.co.uk> wrote:
> > The getline() function is a GNU extension (you need to define > _GNU_SOURCE before including stdio.h) and is, therefore, not > portable. In particular, getline() is not available on MinGW.
Actually, getline is a POSIX-2008 feature, so it's not (simply) a GNU extension:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/getline.html