Skip to content

Commit d88e2d9

Browse files
committed
Fix build issue on Windows
1 parent 2f9170e commit d88e2d9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

include/cppkafka/utils/portable_endian.h renamed to include/cppkafka/utils/endianness.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it
66
// an example on how to get the endian conversion functions on different platforms.
77

8-
#ifndef PORTABLE_ENDIAN_H__
9-
#define PORTABLE_ENDIAN_H__
8+
#ifndef CPPKAFKA_PORTABLE_ENDIAN_H
9+
#define CPPKAFKA_PORTABLE_ENDIAN_H
1010

1111
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
1212

@@ -62,7 +62,6 @@
6262
#elif defined(__WINDOWS__)
6363

6464
# include <winsock2.h>
65-
# include <sys/param.h>
6665

6766
# if BYTE_ORDER == LITTLE_ENDIAN
6867

@@ -116,4 +115,4 @@
116115

117116
#endif
118117

119-
#endif
118+
#endif // CPPKAFKA_PORTABLE_ENDIAN_H

src/group_information.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <algorithm>
44
#include "topic_partition.h"
55
#include "exceptions.h"
6-
#include "utils/portable_endian.h"
6+
#include "utils/endianness.h"
77

88
using std::string;
99
using std::vector;

0 commit comments

Comments
 (0)