From: Nick Mathewson Date: Wed, 7 Nov 2007 22:57:08 +0000 (+0000) Subject: r16556@catbus: nickm | 2007-11-07 17:55:39 -0500 X-Git-Tag: release-2.0.1-alpha~513 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fd2124ef9e12228f41023bcf02bdbdf6800a208;p=libevent r16556@catbus: nickm | 2007-11-07 17:55:39 -0500 MSVC6 does not seem to define a useful "what is the name of this function" macro svn:r502 --- diff --git a/WIN32-Code/config.h b/WIN32-Code/config.h index 88b2a513..4964c145 100644 --- a/WIN32-Code/config.h +++ b/WIN32-Code/config.h @@ -206,7 +206,11 @@ #define VERSION "1.3.99-trunk" /* Define to appropriate substitue if compiler doesnt have __func__ */ +#if defined(_MSC_VER) && _MSC_VER < 1300 +#define __func__ "??" +#else #define __func__ __FUNCTION__ +#endif /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */