瀏覽代碼

core: fixed printing function name in log message

- based on http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html
Daniel-Constantin Mierla 12 年之前
父節點
當前提交
e081c2880b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dprint.h

+ 1 - 1
dprint.h

@@ -46,7 +46,7 @@
 
 
 /* C >= 99 has __func__, older gcc versions have __FUNCTION__ */
 /* C >= 99 has __func__, older gcc versions have __FUNCTION__ */
 #if __STDC_VERSION__ < 199901L
 #if __STDC_VERSION__ < 199901L
-#	if __GNUC__ >= 2 && defined __FUNCTION__
+#	if __GNUC__ >= 2
 #		define _FUNC_NAME_ __FUNCTION__
 #		define _FUNC_NAME_ __FUNCTION__
 #	else
 #	else
 #		define _FUNC_NAME_ ""
 #		define _FUNC_NAME_ ""