Fix build issue on Windows

This commit is contained in:
Matias Fontanini
2017-06-03 12:38:54 -07:00
parent 2f9170e32a
commit d88e2d9ed4
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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;