]> granicus.if.org Git - libevent/commitdiff
r16556@catbus: nickm | 2007-11-07 17:55:39 -0500
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2007 22:57:08 +0000 (22:57 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2007 22:57:08 +0000 (22:57 +0000)
 MSVC6 does not seem to define a useful "what is the name of this function" macro

svn:r502

WIN32-Code/config.h

index 88b2a513201ad59e68b00cb878979dc90c368be9..4964c145eec882e2656389a94e5cab5b5d706f30 100644 (file)
 #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 */