From 7ccbbcaedf7b07ff924d0f07a31c3531c64fb336 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Tue, 27 May 2008 08:49:37 +0000 Subject: [PATCH] __FUNCTION__ is a gcc extension... git-svn-id: http://svn.openzap.org/svn/openzap/trunk@488 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/include/zap_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/openzap/src/include/zap_types.h b/libs/openzap/src/include/zap_types.h index 8b25e9fc07..c187f1f8d4 100644 --- a/libs/openzap/src/include/zap_types.h +++ b/libs/openzap/src/include/zap_types.h @@ -436,6 +436,10 @@ typedef zap_status_t (*zio_write_t) ZIO_WRITE_ARGS ; #define ZIO_READ_FUNCTION(name) zap_status_t name ZIO_READ_ARGS #define ZIO_WRITE_FUNCTION(name) zap_status_t name ZIO_WRITE_ARGS +#ifndef __FUNCTION__ +#define __FUNCTION__ "" +#endif + #define ZAP_PRE __FILE__, __FUNCTION__, __LINE__ #define ZAP_LOG_LEVEL_DEBUG 7 #define ZAP_LOG_LEVEL_INFO 6