Re: gethostname on 64-bit Windows

2016-06-24 Thread Tatsuro MATSUOKA
- Original Message - > From: John W. Eaton > To: gnulib > Cc: j...@octave.org > Date: 2016/6/25, Sat 04:46 > Subject: gethostname on 64-bit Windows > > I needed the attached change to cross compile Octave for i686-w64-mingw32. > > Without it, rpl_gethostname was undefined because w64

gethostname on 64-bit Windows

2016-06-24 Thread John W. Eaton
I needed the attached change to cross compile Octave for i686-w64-mingw32. Without it, rpl_gethostname was undefined because w64 has a gethostname function so gethostname.c is not added to the list of files to build but gethostname was still being redefined to rpl_gethostname. jwe diff -uNr

[PATCH] intprops: port better to GCC 7

2016-06-24 Thread Paul Eggert
GCC 7 __builtin_add_overflow supports a new usage form, where the last argument is a null pointer, and which merely returns 1 if an overflow would occur. This is a constant expression if all arguments are constants, and should generate faster code when code needs to be generated. * lib/intprops.h