fixed visual studio project
This commit is contained in:
@@ -7,7 +7,7 @@ extern "C" {
|
||||
#include "network.h"
|
||||
|
||||
#if KN_USE_WINSOCK
|
||||
#include "winsock.h"
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
@@ -49,18 +49,8 @@ extern "C" {
|
||||
#pragma GCC error "unknown compiler"
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void*)0)
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define PACK(...) __VA_ARGS__ __attribute__((__packed__))
|
||||
#elif defined(_MSC_VER)
|
||||
#define PACK(...) __pragma(pack(push, 1)) __VA_ARGS__ __pragma(pack(pop))
|
||||
#endif
|
||||
|
||||
|
||||
#define PACK(...) __VA_ARGS__ __attribute__((__packed__))
|
||||
|
||||
#if __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user