Index: sys/sys/cdefs.h =================================================================== RCS file: /cvsroot/src/sys/sys/cdefs.h,v retrieving revision 1.137 diff -u -r1.137 cdefs.h --- sys/sys/cdefs.h 22 Aug 2018 12:07:43 -0000 1.137 +++ sys/sys/cdefs.h 1 Dec 2018 20:22:48 -0000 @@ -417,7 +417,7 @@ * C99 defines __func__ predefined identifier, which was made available * in GCC 2.95. */ -#if !(__STDC_VERSION__ >= 199901L) +#if !(__STDC_VERSION__ >= 199901L) && !(__cplusplus - 0 >= 201103L) #if __GNUC_PREREQ__(2, 6) #define __func__ __PRETTY_FUNCTION__ #elif __GNUC_PREREQ__(2, 4) @@ -425,7 +425,7 @@ #else #define __func__ "" #endif -#endif /* !(__STDC_VERSION__ >= 199901L) */ +#endif /* !(__STDC_VERSION__ >= 199901L) && !(__cplusplus - 0 >= 201103L) */ #if defined(_KERNEL) #if defined(NO_KERNEL_RCSIDS)