Skip to content

Commit 511499d

Browse files
committed
Reorder preprocessor conditions in libi2pd/I2PEndian.h
The problem is that __FreeBSD_kernel__ may be defined on FreeBSD as well, while it always needs <sys/endian.h>
1 parent 6632b71 commit 511499d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libi2pd/I2PEndian.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
#include <inttypes.h>
44
#include <string.h>
55

6-
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
7-
#include <endian.h>
8-
#elif __FreeBSD__
6+
#if defined(__FreeBSD__)
97
#include <sys/endian.h>
8+
#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
9+
#include <endian.h>
1010
#elif defined(__APPLE__) && defined(__MACH__)
1111

1212
#include <libkern/OSByteOrder.h>

0 commit comments

Comments
 (0)