From 8fd2124ef9e12228f41023bcf02bdbdf6800a208 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 7 Nov 2007 22:57:08 +0000 Subject: [PATCH] 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 --- WIN32-Code/config.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */