]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
better fix for missing __FUNCTION__
authorStefan Knoblich <stkn@freeswitch.org>
Tue, 27 May 2008 15:59:56 +0000 (15:59 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Tue, 27 May 2008 15:59:56 +0000 (15:59 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@489 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/include/zap_types.h

index c187f1f8d4e0ec1dd9347f4a17b7242082fff218..dbe03d3cf7c6b9cee8cb0fd3f3e21fdab3f7417f 100644 (file)
@@ -437,7 +437,7 @@ typedef zap_status_t (*zio_write_t) ZIO_WRITE_ARGS ;
 #define ZIO_WRITE_FUNCTION(name) zap_status_t name ZIO_WRITE_ARGS
 
 #ifndef __FUNCTION__
-#define __FUNCTION__ ""
+#define __FUNCTION__ (const char *)__func__
 #endif
 
 #define ZAP_PRE __FILE__, __FUNCTION__, __LINE__