mesa: Define C99's __func__ macro on MSVC.

This commit is contained in:
José Fonseca 2010-09-06 13:56:07 +01:00
parent 35e01b79cb
commit 079c884060

View file

@ -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__ "<unknown>"
# endif
# endif
#endif
/**