diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-12-22 02:32:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-12-22 02:32:26 +0000 |
commit | 32978afa5481f66c9ff4fb7ededbdecf6800c16c (patch) | |
tree | 3bf7fdc0ad64e66a100f0a987c9777a671a41136 /src/common/compat.h | |
parent | 64195e380d08b7e293071392ffb16d5691129eda (diff) | |
download | tor-32978afa5481f66c9ff4fb7ededbdecf6800c16c.tar.gz tor-32978afa5481f66c9ff4fb7ededbdecf6800c16c.zip |
Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's name out
of the warning messages.
svn:r3199
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 20c243e500..48163a95fc 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -86,6 +86,9 @@ int tor_vsnprintf(char *str, size_t size, const char *format, va_list args); #define TOR_ISXDIGIT(c) isxdigit((int)(unsigned char)(c)) #define TOR_ISDIGIT(c) isdigit((int)(unsigned char)(c)) +#define _SHORT_FILE_ (_tor_fix_source_file(__FILE__)) +const char *_tor_fix_source_file(const char *fname); + /* ===== Time compatibility */ #if !defined(HAVE_GETTIMEOFDAY) && !defined(HAVE_STRUCT_TIMEVAL_TV_SEC) struct timeval { |