mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 06:20:19 +01:00
gallium: Define __func__ on MSVC.
This commit is contained in:
parent
cf143c1f4d
commit
d40b868db5
1 changed files with 12 additions and 0 deletions
|
|
@ -171,6 +171,18 @@ typedef unsigned char boolean;
|
|||
# define __FUNCTION__ "<unknown>"
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue