Commit 88f3e7c0 authored by chenhaowen's avatar chenhaowen

fix endian.h in win32

parent da947aa9
......@@ -5,16 +5,17 @@
#include <stdint.h>
#include <sys/time.h>
#include <time.h>
#include <endian.h>
#ifdef WIN32
#include <winsock2.h>
typedef int socklen_t;
//#define SOCKET int
#define htole32(x) (x)
#define le32toh(x) (x)
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <endian.h>
#define SOCKET int
#define INVALID_SOCKET -1
#endif
......
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