From b9480620c61e1eb5115353e1ff79c2d676d70964 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 17 Jun 2003 21:15:25 +0000 Subject: Make log_fn work on apples with no workarounds needed in main code svn:r330 --- src/common/log.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/log.h b/src/common/log.h index d8311d20fb..5669a511aa 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -13,10 +13,13 @@ void log(int severity, const char *format, ...); #ifdef __GNUC__ -#define log_fn(severity, format) \ - log((severity), "%s(): " format , __PRETTY_FUNCTION__) -#define log_fnf(severity, format, args...) \ - log((severity), "%s(): " format , __PRETTY_FUNCTION__ , ##args) +#ifdef __APPLE_CPP__ +#define log_fn(severity, args...) \ + log((severity), __PRETTY_FUNCTION__ "(): " args) +#else +#define log_fn(severity, format, args...) \ + log((severity), "%s(): " format, __PRETTY_FUNCTION__ , ##args) +#endif #else #define log_fn log #define log_fnf log -- cgit v1.2.3-54-g00ecf