Browse Source

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>
pull/1030/head
Dmitry Marakasov 7 years ago
parent
commit
511499d950
  1. 6
      libi2pd/I2PEndian.h

6
libi2pd/I2PEndian.h

@ -3,10 +3,10 @@
#include <inttypes.h> #include <inttypes.h>
#include <string.h> #include <string.h>
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) #if defined(__FreeBSD__)
#include <endian.h>
#elif __FreeBSD__
#include <sys/endian.h> #include <sys/endian.h>
#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
#include <endian.h>
#elif defined(__APPLE__) && defined(__MACH__) #elif defined(__APPLE__) && defined(__MACH__)
#include <libkern/OSByteOrder.h> #include <libkern/OSByteOrder.h>

Loading…
Cancel
Save