tests: Fix for NetBSD with __func__.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 29 Jan 2018 00:34:37 +0000 (09:34 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 29 Jan 2018 00:34:37 +0000 (09:34 +0900)
* tests/asschk.c: Don't define __func__ if available.

--

NetBSD 7.0 has __func__ defined.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tests/asschk.c

index 2595c0a..65828e5 100644 (file)
 #endif
 
 #if __STDC_VERSION__ < 199901L
-# if __GNUC__ >= 2
+# if __GNUC__ >= 2 && !defined (__func__)
 #  define __func__ __FUNCTION__
 # else
 /* Let's try our luck here.  Some systems may provide __func__ without