Skip to content

Commit

Permalink
Reorder preprocessor conditions in libi2pd/I2PEndian.h
Browse files Browse the repository at this point in the history
The problem is that __FreeBSD_kernel__ may be defined on FreeBSD as
well, while it always needs <sys/endian.h>
  • Loading branch information
AMDmi3 committed Dec 11, 2017
1 parent 6632b71 commit 511499d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libi2pd/I2PEndian.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#include <inttypes.h>
#include <string.h>

#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
#include <endian.h>
#elif __FreeBSD__
#if defined(__FreeBSD__)
#include <sys/endian.h>
#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
#include <endian.h>
#elif defined(__APPLE__) && defined(__MACH__)

#include <libkern/OSByteOrder.h>
Expand Down

0 comments on commit 511499d

Please sign in to comment.