mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
Fix __func__ for -std=c89 with GCC 5.4.0 (fixes #12)
GCC 5.4.0 does not define __STDC_VERSION__ when -std=c89 is passed.
This commit is contained in:
parent
acbdb19a28
commit
7c715a9d3c
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
/* ISO C90 does not support '__func__' predefined identifier */
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ < 199901)
|
||||
#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ < 199901)) || \
|
||||
(defined(__GNUC__) && !defined(__STDC_VERSION__))
|
||||
# define __func__ "(unknown)"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue