From 70ae4546470fe023647affd2c2d34d08a0870e68 Mon Sep 17 00:00:00 2001 From: oddsock Date: Thu, 4 Dec 2003 16:23:51 +0000 Subject: [PATCH] get rid of the fullpath of the module that is logged...Stupid VC6.... svn path=/trunk/icecast/; revision=5680 --- src/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging.h b/src/logging.h index b2b12fe5..4db8f43e 100644 --- a/src/logging.h +++ b/src/logging.h @@ -16,7 +16,7 @@ extern int accesslog; */ #ifdef _WIN32 -#define __FUNCTION__ __FILE__ +#define __FUNCTION__ strrchr (__FILE__, '\\') ? strrchr (__FILE__, '\\') + 1 : __FILE__ #endif #define ERROR0(y) log_write(errorlog, 1, CATMODULE "/", __FUNCTION__, y)