summaryrefslogtreecommitdiff
path: root/include/al/log.h
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-09-05 19:12:07 -0400
committerAndrew Opalach <andrew@akon.city> 2026-09-05 19:12:07 -0400
commit98de33b1f74a381f442773f1cc73d1b07288bee1 (patch)
tree525d56aa3da407015f0ceee18a8494ae1feda8cb /include/al/log.h
parentbc91d50afd91965fe740febdaee04719ae1b7996 (diff)
downloadlibalabaster-98de33b1f74a381f442773f1cc73d1b07288bee1.tar.gz
libalabaster-98de33b1f74a381f442773f1cc73d1b07288bee1.tar.bz2
libalabaster-98de33b1f74a381f442773f1cc73d1b07288bee1.zip
log: Account for '\' in __LOCATION__
MingW Clang does this. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'include/al/log.h')
-rw-r--r--include/al/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/al/log.h b/include/al/log.h
index 92e6e29..520306f 100644
--- a/include/al/log.h
+++ b/include/al/log.h
@@ -14,7 +14,7 @@ static const char *AL_LOG_SECTION_NAME = AL_LOG_SECTION;
#endif
AL_IGNORE_WARNING_END
-#define __LOCATION__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__), __LINE__, __FUNCTION__
+#define __LOCATION__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)), __LINE__, __FUNCTION__
#define AL_LOG_MESSAGE_SIZE 256u
#define AL_LOG_MESSAGE_LENGTH (AL_LOG_MESSAGE_SIZE - 1u)