From: <svn...@op...> - 2009-10-22 15:19:02
|
Author: henrik Date: Thu Oct 22 17:18:43 2009 New Revision: 5885 URL: http://www.opensync.org/changeset/5885 Log: Corrected LOG handling for Windows Modified: plugins/mozilla-sync/trunk/src/nsProfileDirServiceProvider.cpp Modified: plugins/mozilla-sync/trunk/src/nsProfileDirServiceProvider.cpp ============================================================================== --- plugins/mozilla-sync/trunk/src/nsProfileDirServiceProvider.cpp Thu Oct 22 17:18:16 2009 (r5884) +++ plugins/mozilla-sync/trunk/src/nsProfileDirServiceProvider.cpp Thu Oct 22 17:18:43 2009 (r5885) @@ -54,12 +54,18 @@ #include "nsProfileDirServiceProvider.h" +#ifdef _WIN32 +#ifndef __func__ +#define __func__ __FUNCTION__ +#endif +#endif + // Define NSPROFILEDIRSERVICEPROVIDER_DEBUG to get a message on stdout when functions are called. // Handy when nothing works, and you have to figure out if the service was used at all... #define NSPROFILEDIRSERVICEPROVIDER_DEBUG 1 #ifdef NSPROFILEDIRSERVICEPROVIDER_DEBUG -#define LOG(level, message ...) \ - { printf("nsProfileDirServiceProvider::%s(%d): ", __func__, __LINE__); printf(message); printf("\n"); } +#define LOG(level, message, ...) \ + { printf("nsProfileDirServiceProvider::%s(%d): ", __func__, __LINE__); printf(message,## __VA_ARGS__); printf("\n"); } #else #define LOG(level, message, ...) #endif |