Re: #defines in unistd.h

2010-04-05 Thread Bruno Haible
> 2010-03-28 Bruno Haible > > unistd: Avoid #define replacements in C++ mode. > * lib/unistd.in.h (socket, connect, accept, bind, getpeername, > getsockname, getsockopt, listen, recv, send, recvfrom, sendto, > setsockopt, shutdown, select): In C++, attach a warning to th

Re: #defines in unistd.h

2010-03-28 Thread Bruno Haible
Hi John, Thanks for this report. > The current gnulib unistd.in.h file includes the following section: > > #if @GNULIB_GETHOSTNAME@ > /* Get all possible declarations of gethostname(). */ > # if @UNISTD_H_HAVE_WINSOCK2_H@ > # if !defined _GL_SYS_SOCKET_H > # undef socket > # de

#defines in unistd.h

2010-03-23 Thread John W. Eaton
The current gnulib unistd.in.h file includes the following section: #if @GNULIB_GETHOSTNAME@ /* Get all possible declarations of gethostname(). */ # if @UNISTD_H_HAVE_WINSOCK2_H@ # if !defined _GL_SYS_SOCKET_H # undef socket # define socket socket_used_without_inclu