Fixing compile errors on the MSVC compiler
This commit is contained in:
parent
bdc7235246
commit
0f14184bf6
@ -6,6 +6,7 @@
|
||||
#define FRNETLIB_NETWORKENCODING_H
|
||||
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
#include <atomic>
|
||||
#include <exception>
|
||||
@ -55,8 +56,6 @@
|
||||
# define htonll(x) (x)
|
||||
# define ntohll(x) (x)
|
||||
# endif
|
||||
#elif defined(_MSC_VER)
|
||||
//MSVC has htonll and ntohll, no need to redefine
|
||||
#else
|
||||
# define htonll(x) ((1==htonl(1)) ? (x) : ((uint64_t)htonl((x) & 0xFFFFFFFF) << 32) | htonl((x) >> 32))
|
||||
# define ntohll(x) ((1==ntohl(1)) ? (x) : ((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32))
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
#define FRNETLIB_WEBFRAME_H
|
||||
|
||||
|
||||
#include <ctime>
|
||||
#include "Sendable.h"
|
||||
|
||||
namespace fr
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
#ifndef FRNETLIB_WEBSOCKET_H
|
||||
#define FRNETLIB_WEBSOCKET_H
|
||||
|
||||
#include <ctime>
|
||||
#include "frnetlib/Socket.h"
|
||||
#include "frnetlib/HttpRequest.h"
|
||||
#include "frnetlib/HttpResponse.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user