mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
Don't #define __FUNCTION__ on a Microsoft C compiler new enough to have it.
This commit is contained in:
parent
219f3c4489
commit
eac7688231
1 changed files with 2 additions and 1 deletions
|
|
@ -288,10 +288,11 @@ int INLINE ffs(int value)
|
|||
|
||||
/* The __FUNCTION__ gcc variable is generally only used for debugging.
|
||||
* If we're not using gcc, define __FUNCTION__ as a cpp symbol here.
|
||||
* Don't define it if using a newer Windows compiler.
|
||||
*/
|
||||
#if defined(__VMS)
|
||||
#define __FUNCTION__ "VMS$NL:"
|
||||
#elif !(defined(__GNUC__) && __GNUC__ >= 2)
|
||||
#elif !(defined(__GNUC__) && __GNUC__ >= 2) && !(defined(_MSC_VER) && _MSC_VER >= 1300)
|
||||
#define __FUNCTION__ "unknown"
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue