Index: trunk/lib/libqof/qof/qoflog.h
===================================================================
--- trunk/lib/libqof/qof/qoflog.h	(revision 17246)
+++ trunk/lib/libqof/qof/qoflog.h	(working copy)
@@ -165,7 +165,7 @@
 /** Set the default level for QOF-related log paths. **/
 void qof_log_set_default(QofLogLevel log_level);
 
-#define PRETTY_FUNC_NAME qof_log_prettify(__FUNCTION__)
+#define PRETTY_FUNC_NAME qof_log_prettify(G_GNUC_PRETTY_FUNCTION)
 
 /** Log a fatal error */
 #define FATAL(format, args...) do { \
