mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-03 12:07:57 +00:00
Fix build issue on Windows
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it
|
// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it
|
||||||
// an example on how to get the endian conversion functions on different platforms.
|
// an example on how to get the endian conversion functions on different platforms.
|
||||||
|
|
||||||
#ifndef PORTABLE_ENDIAN_H__
|
#ifndef CPPKAFKA_PORTABLE_ENDIAN_H
|
||||||
#define PORTABLE_ENDIAN_H__
|
#define CPPKAFKA_PORTABLE_ENDIAN_H
|
||||||
|
|
||||||
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
|
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
|
||||||
|
|
||||||
@@ -62,7 +62,6 @@
|
|||||||
#elif defined(__WINDOWS__)
|
#elif defined(__WINDOWS__)
|
||||||
|
|
||||||
# include <winsock2.h>
|
# include <winsock2.h>
|
||||||
# include <sys/param.h>
|
|
||||||
|
|
||||||
# if BYTE_ORDER == LITTLE_ENDIAN
|
# if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
|
|
||||||
@@ -116,4 +115,4 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif // CPPKAFKA_PORTABLE_ENDIAN_H
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "topic_partition.h"
|
#include "topic_partition.h"
|
||||||
#include "exceptions.h"
|
#include "exceptions.h"
|
||||||
#include "utils/portable_endian.h"
|
#include "utils/endianness.h"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|||||||
Reference in New Issue
Block a user