diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-02-26 09:51:34 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-02-26 09:52:40 +0000 |
commit | 689b53a37474149616277b34a943db4c686f3a62 (patch) | |
tree | 0ae0705c92279312340c272381f442fb48069765 /tests/util | |
parent | bba7b9f911caf0e7357a80b46f9c62a3e799db9b (diff) |
util: Define C99 __func__ macro on MSVC.
MSVC, including 2013, only supports __FUNCTION__ --
https://msdn.microsoft.com/en-us/library/b0084kay.aspx
Trivial.
Diffstat (limited to 'tests/util')
-rwxr-xr-x | tests/util/piglit-util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h index c6e72a5f4..179834329 100755 --- a/tests/util/piglit-util.h +++ b/tests/util/piglit-util.h @@ -68,6 +68,10 @@ extern "C" { #define inline __inline #endif +#if !defined(__func__) +#define __func__ __FUNCTION__ +#endif + #define snprintf _snprintf #define alloca _alloca |