Browse code

core: no function name in logs for gcc 2.95

For old gccs check if __FUNCTION__ is defined before enabling
logging of the function name. This fixes compilation with gcc
2.95.

Andrei Pelinescu-Onciul authored on 05/10/2010 16:43:54
Showing 1 changed files
... ...
@@ -48,7 +48,7 @@
48 48
 
49 49
 /* C >= 99 has __func__, older gcc versions have __FUNCTION__ */
50 50
 #if __STDC_VERSION__ < 199901L
51
-#	if __GNUC__ >= 2
51
+#	if __GNUC__ >= 2 && defined __FUNCTION__
52 52
 #		define _FUNC_NAME_ __FUNCTION__
53 53
 #	else
54 54
 #		define _FUNC_NAME_ ""