mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-03 01:21:16 +03:00
#including winsock2 and ws2tcpip headers by default on windows
This commit is contained in:
@@ -60,6 +60,8 @@
|
|||||||
#if defined(_WIN32) && !defined(__SYMBIAN32__) // Windows specific
|
#if defined(_WIN32) && !defined(__SYMBIAN32__) // Windows specific
|
||||||
#define _WIN32_WINNT 0x0400 // To make it link in VS2005
|
#define _WIN32_WINNT 0x0400 // To make it link in VS2005
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <winsock2.h>
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
#define PATH_MAX MAX_PATH
|
#define PATH_MAX MAX_PATH
|
||||||
@@ -70,8 +72,6 @@
|
|||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#else // _WIN32_WCE
|
#else // _WIN32_WCE
|
||||||
#include <winsock2.h>
|
|
||||||
#include <ws2tcpip.h>
|
|
||||||
#define NO_CGI // WinCE has no pipes
|
#define NO_CGI // WinCE has no pipes
|
||||||
|
|
||||||
typedef long off_t;
|
typedef long off_t;
|
||||||
|
Reference in New Issue
Block a user