From 9340812a493cef358f6d2224043953993aee1189 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 15 Apr 2024 10:26:15 +0200 Subject: [PATCH] fixed windows path separator --- src/sys/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/log.h b/src/sys/log.h index f582eb9..7e81d92 100644 --- a/src/sys/log.h +++ b/src/sys/log.h @@ -25,7 +25,7 @@ // generally not defined by GCC < 11.3 and MSVC #ifndef __FILE_NAME__ #if defined(_WIN32) || defined(_WIN64) || defined(_MSC_VER) -#define __FILE_NAME__ (strrstr(__FILE__, "\\\\") ? strrstr(__FILE__, "\\\\") + 1 : __FILE__) +#define __FILE_NAME__ (strrstr(__FILE__, "\\") ? strrstr(__FILE__, "\\") + 1 : __FILE__) #else #define __FILE_NAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) #endif