Commit 6e34111e by Vicent Marti

netops: Use pragmas only in MSVC

parent 356f11fe
...@@ -4,19 +4,21 @@ ...@@ -4,19 +4,21 @@
* 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>
# include <sys/select.h> # include <sys/select.h>
# include <netdb.h> # include <netdb.h>
#else #else
# define _WIN32_WINNT 0x0501 # define _WIN32_WINNT 0x0501
# include <winsock2.h> # include <winsock2.h>
# include <Ws2tcpip.h> # include <Ws2tcpip.h>
# pragma comment(lib, "Ws2_32.lib") # ifdef _MSC_VER
# 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