OSDN Git Service

Support musl libc that does not define __GLIBC__ macro.
authorrelan <relan@users.noreply.github.com>
Mon, 27 Jul 2015 18:41:20 +0000 (21:41 +0300)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:43:32 +0000 (08:43 +0300)
Looks like all libc implementations that support Linux (glibc,
uClibc(-ng), musl and even Bionic) provide the requred defines.
Consider Linux as a single platform.

Signed-off-by: Brendan Heading <brendanheading@gmail.com>
libexfat/platform.h

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