From 079c8840609f1277320bd85c3e9568179e30bfd3 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 6 Sep 2010 13:56:07 +0100 Subject: mesa: Define C99's __func__ macro on MSVC. --- src/mesa/main/compiler.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index ded69c3106..800eb83900 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -224,6 +224,18 @@ extern "C" { # endif # endif #endif +#ifndef __func__ +# if (__STDC_VERSION__ >= 199901L) || \ + (defined(__SUNPRO_C) && defined(__C99FEATURES__)) + /* __func__ is part of C99 */ +# elif defined(_MSC_VER) +# if _MSC_VER >= 1300 +# define __func__ __FUNCTION__ +# else +# define __func__ "" +# endif +# endif +#endif /** -- cgit v1.2.3