mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Add fallback for __func__ (ioq3 isn't compiled as c99 by default)
Using Debian gcc version 4.7.2 and clang 3.0-6.1 anyway.
This commit is contained in:
parent
1c66e30e7e
commit
a7317ac0d5
1 changed files with 6 additions and 2 deletions
|
@ -309,8 +309,12 @@ FILE* missingFiles = NULL;
|
|||
#endif
|
||||
|
||||
/* C99 defines __func__ */
|
||||
#ifndef __func__
|
||||
#define __func__ "(unknown)"
|
||||
#if __STDC_VERSION__ < 199901L
|
||||
# if __GNUC__ >= 2 || _MSC_VER >= 1300
|
||||
# define __func__ __FUNCTION__
|
||||
# else
|
||||
# define __func__ "(unknown)"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue