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
// an example on how to get the endian conversion functions on different platforms.
#ifndef PORTABLE_ENDIAN_H__
#define PORTABLE_ENDIAN_H__
#ifndef CPPKAFKA_PORTABLE_ENDIAN_H
#define CPPKAFKA_PORTABLE_ENDIAN_H
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
@@ -62,7 +62,6 @@
#elif defined(__WINDOWS__)
# include <winsock2.h>
# include <sys/param.h>
# if BYTE_ORDER == LITTLE_ENDIAN
@@ -116,4 +115,4 @@
#endif
#endif
#endif // CPPKAFKA_PORTABLE_ENDIAN_H