From 9abecdf4e79be689b2b4e41f9df5080f2d322715 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Tue, 3 Jun 2003 18:05:20 +0000 Subject: [PATCH] Win32: Whack the fully qualified names that appear in the log when loglevel debug is being used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100153 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/log.c b/server/log.c index 95ab4aa2e8..41dbb5b1aa 100644 --- a/server/log.c +++ b/server/log.c @@ -473,9 +473,14 @@ static void log_error_core(const char *file, int line, int level, #ifndef TPF if (file && level_and_mask == APLOG_DEBUG) { -#ifdef _OSD_POSIX +#if defined(_OSD_POSIX) || defined(WIN32) char tmp[256]; char *e = strrchr(file, '/'); +#ifdef WIN32 + if (!e) { + e = strrchr(file, '\\'); + } +#endif /* In OSD/POSIX, the compiler returns for __FILE__ * a string like: __FILE__="*POSIX(/usr/include/stdio.h)" -- 2.40.0