From 71ae8acf95fec988fd03a9b11d86eeb827297d2f Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Mon, 23 Jun 2003 13:03:59 +0000 Subject: [PATCH] Win32: Whack the fully qualified names win loglevel debug is set git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@100339 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 95ab4aa2e8e..41dbb5b1aa2 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.47.3