>From 5ca9ff49771c178f0d70a660d80ee74fe9b938c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim Rühsen?= Date: Sat, 7 Jan 2017 16:32:47 +0100 Subject: [PATCH 2/2] Avoid warning about undefined WINDOWS_SOCKETS * lib/sockets.h: Check if WINDOWS_SOCKETS is defined --- lib/sockets.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sockets.h b/lib/sockets.h index da894b81c..8392e5756 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 -- 2.11.0