Browse Source

endian.h: Fix compilation on Linux.

master
Reece H. Dunn 8 years ago
parent
commit
02f0c83619
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/include/compat/endian.h

+ 2
- 1
src/include/compat/endian.h View File

@@ -23,7 +23,8 @@
#endif

#if defined(__linux__) || defined(__CYGWIN__)
# include <endian.h>
# pragma GCC system_header // Silence "warning: #include_next is a GCC extension"
# include_next <endian.h>
#elif defined(__APPLE__)
# include <libkern/OSByteOrder.h>


Loading…
Cancel
Save