Commit 6e34111e by Vicent Marti

netops: Use pragmas only in MSVC

parent 356f11fe
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#ifndef _WIN32 #ifndef _WIN32
# include <sys/types.h> # include <sys/types.h>
# include <sys/socket.h> # include <sys/socket.h>
...@@ -14,9 +13,12 @@ ...@@ -14,9 +13,12 @@
# define _WIN32_WINNT 0x0501 # define _WIN32_WINNT 0x0501
# include <winsock2.h> # include <winsock2.h>
# include <Ws2tcpip.h> # include <Ws2tcpip.h>
# ifdef _MSC_VER
# pragma comment(lib, "Ws2_32.lib") # pragma comment(lib, "Ws2_32.lib")
# endif
#endif #endif
#include "git2/errors.h" #include "git2/errors.h"
#include "common.h" #include "common.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment