diff th_file.h @ 557:5c3697bfefa3

Rename TH_DIR_SEPARATOR define to TH_DIR_SEPARATOR_CHR and add new TH_DIR_SEPARATOR_STR which defines an equal string constant.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 10:45:33 +0200
parents 3a852e9f70a6
children 7b7872212afd
line wrap: on
line diff
--- a/th_file.h	Sun Jan 05 10:44:58 2020 +0200
+++ b/th_file.h	Sun Jan 05 10:45:33 2020 +0200
@@ -18,9 +18,11 @@
 
 // Platform specific defines
 #if defined(TH_PLAT_WINDOWS)
-#    define TH_DIR_SEPARATOR '\\'
+#    define TH_DIR_SEPARATOR_CHR '\\'
+#    define TH_DIR_SEPARATOR_STR "\\"
 #else
-#    define TH_DIR_SEPARATOR '/'
+#    define TH_DIR_SEPARATOR_CHR '/'
+#    define TH_DIR_SEPARATOR_STR "/"
 #endif