diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-11-07 22:57:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-11-07 22:57:08 +0000 |
commit | 8fd2124ef9e12228f41023bcf02bdbdf6800a208 (patch) | |
tree | 9f07d4211f6d23856b576ba807f8fd19d8c7374d /WIN32-Code/config.h | |
parent | 74e5e8f439f86e6e5ac699f0513beb4a19d115de (diff) | |
download | libevent-8fd2124ef9e12228f41023bcf02bdbdf6800a208.tar.gz |
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
Diffstat (limited to 'WIN32-Code/config.h')
-rw-r--r-- | WIN32-Code/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |