mirror of
https://github.com/Fishwaldo/minihttp.git
synced 2025-07-06 12:58:28 +00:00
Merge pull request #2 from meh2481/master
Fix include order for MinGW Windows
This commit is contained in:
commit
677000b533
1 changed files with 10 additions and 8 deletions
18
minihttp.cpp
18
minihttp.cpp
|
@ -10,15 +10,8 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sstream>
|
||||
#include <cctype>
|
||||
#include <cerrno>
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef _WIN32
|
||||
# undef UNICODE
|
||||
# ifndef _WIN32_WINNT
|
||||
# define _WIN32_WINNT 0x0501
|
||||
# endif
|
||||
|
@ -28,6 +21,7 @@
|
|||
# define ETIMEDOUT WSAETIMEDOUT
|
||||
# define ECONNRESET WSAECONNRESET
|
||||
# define ENOTCONN WSAENOTCONN
|
||||
# include <io.h>
|
||||
#else
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
|
@ -39,6 +33,14 @@
|
|||
typedef intptr_t SOCKET;
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sstream>
|
||||
#include <cctype>
|
||||
#include <cerrno>
|
||||
#include <algorithm>
|
||||
|
||||
#include "minihttp.h"
|
||||
|
||||
#define SOCKETVALID(s) ((s) != INVALID_SOCKET)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue