diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2017-01-07 18:12:52 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-01-07 18:13:30 +0100 |
commit | bfd562604d598ad7495e1b929a004f035b4e5998 (patch) | |
tree | ae1b969756ed4f97ebd265d6f748dd8f07392363 /lib/sockets.h | |
parent | dbc7752c526d1eb267cace67917c88db99ccbcdd (diff) | |
download | gnulib-bfd562604d598ad7495e1b929a004f035b4e5998.tar.gz |
Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
* lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
Diffstat (limited to 'lib/sockets.h')
-rw-r--r-- | lib/sockets.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sockets.h b/lib/sockets.h index da894b81c2..8392e57566 100644 --- a/lib/sockets.h +++ b/lib/sockets.h @@ -27,13 +27,13 @@ #define SOCKETS_2_2 0x0202 int gl_sockets_startup (int version) -#if !WINDOWS_SOCKETS +#ifndef WINDOWS_SOCKETS _GL_ATTRIBUTE_CONST #endif ; int gl_sockets_cleanup (void) -#if !WINDOWS_SOCKETS +#ifndef WINDOWS_SOCKETS _GL_ATTRIBUTE_CONST #endif ; @@ -41,7 +41,7 @@ int gl_sockets_cleanup (void) /* This function is useful it you create a socket using gnulib's Winsock wrappers but needs to pass on the socket handle to some other library that only accepts sockets. */ -#if WINDOWS_SOCKETS +#ifdef WINDOWS_SOCKETS #include <sys/socket.h> |