OSDN Git Service

Support platform macros for GNU/kFreeBSD and GNU/HURD.
authorrelan <relan@users.noreply.github.com>
Wed, 7 Oct 2015 19:18:26 +0000 (22:18 +0300)
committerrelan <relan@users.noreply.github.com>
Fri, 9 Oct 2015 06:26:23 +0000 (09:26 +0300)
While GNU/kFreeBSD uses glibc it's obviously not Linux, so it requires
explicit __GLIBC__ check. Strangely, but GNU/HURD does not define
__GLIBC__, so check for __GNU__.

libexfat/platform.h

index eaa92f8..99fe507 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef PLATFORM_H_INCLUDED
 #define PLATFORM_H_INCLUDED
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
 
 #include <endian.h>
 #include <byteswap.h>