only check __GNU_LIBRARY__ if it is actually defined
authorMike Frysinger <vapier@gentoo.org>
Tue, 6 Jun 2006 06:00:20 +0000 (06:00 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 6 Jun 2006 06:00:20 +0000 (06:00 -0000)
include/platform.h

index 7d25850f55e6ee3e92ec2d62a1a06575d9aef196..1effc61c026c67ebb6a0edf4775b559fffe53840 100644 (file)
@@ -161,11 +161,11 @@ __extension__ typedef unsigned long long __u64;
 
 /* ---- miscellaneous --------------------------------------- */
 
-#if __GNU_LIBRARY__ < 5 && \
+#if defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ < 5 && \
        !defined(__dietlibc__) && \
        !defined(_NEWLIB_VERSION) && \
        !(defined __digital__ && defined __unix__)
-#error "Sorry, this libc version is not supported :("
+# error "Sorry, this libc version is not supported :("
 #endif
 
 #if defined __GLIBC__ || defined __UCLIBC__ \