diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-15 23:30:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-15 23:30:26 +0000 |
commit | 6143c515cd7125ee3ec440029858b53bc8bf79a2 (patch) | |
tree | c573d73672c654c9fd0d3d0d02a9ae3dcaa73bf3 /src/common/log.h | |
parent | d63d5cb139028b411ec7586fe2c0d99e439ad3e6 (diff) | |
download | tor-6143c515cd7125ee3ec440029858b53bc8bf79a2.tar.gz tor-6143c515cd7125ee3ec440029858b53bc8bf79a2.zip |
Make log_fn not fail so miserably on VC6
svn:r2896
Diffstat (limited to 'src/common/log.h')
-rw-r--r-- | src/common/log.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/log.h b/src/common/log.h index 00eebd05c5..b981ab4388 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -80,6 +80,9 @@ void _log_fn(int severity, const char *funcname, const char *format, ...) * of the current function name. */ #define log_fn(severity, args...) \ _log_fn(severity, __PRETTY_FUNCTION__, args) +#elif defined(_MSC_VER) && _MSC_VER < 1300 +/* MSVC 6 and earlier don't have __FUNCTION__, or even __LINE__. */ +#define log_fn _log #else /* We don't have GCC's varargs macros, so use a global variable to pass the * function name to log_fn */ |