summaryrefslogtreecommitdiff
path: root/src/qcommon/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon/files.c')
-rw-r--r--src/qcommon/files.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/qcommon/files.c b/src/qcommon/files.c
index 59f60bc2..815953e8 100644
--- a/src/qcommon/files.c
+++ b/src/qcommon/files.c
@@ -287,8 +287,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
/*