Permalink
Browse files

Fix compilation with FreeBSD

  • Loading branch information...
pkubaj committed Jul 12, 2018
1 parent c370303 commit 7c4b35b14659b9be30ebfb5974ae6dc5e775f375
Showing with 2 additions and 0 deletions.
  1. +2 −0 framework/physfs_fs.cpp
View
@@ -22,6 +22,8 @@
#define le64toh(x) htole64(x)
#elif defined(_DEFAULT_SOURCE) || defined(_BSD_SOURCE)
#include <endian.h>
#elif defined(__FreeBSD__)
#include <sys/endian.h>
#else
/* We assume all other platforms are little endian for now */
static inline uint16_t le16toh(uint16_t val) { return val; }

0 comments on commit 7c4b35b

Please sign in to comment.