]> wimlib.net Git - wimlib/blobdiff - include/wimlib/util.h
imagex-mount.1.in: Fix typo
[wimlib] / include / wimlib / util.h
index eedb8b0d57451a50de511df41d5814f2864fec02..329368384cc26d76b516793244cd6c9fcaad64d5 100644 (file)
@@ -75,7 +75,7 @@ wimlib_strdup(const char *str) _malloc_attribute;
 #  define      REALLOC wimlib_realloc
 #  define      CALLOC  wimlib_calloc
 #  define      STRDUP  wimlib_strdup
-#  define      WSTRDUP wimlib_wcsdup
+#  define      WCSDUP  wimlib_wcsdup
 #else /* ENABLE_CUSTOM_MEMORY_ALLOCATOR */
 #  include <stdlib.h>
 #  include <string.h>
@@ -84,7 +84,7 @@ wimlib_strdup(const char *str) _malloc_attribute;
 #  define      REALLOC realloc
 #  define      CALLOC  calloc
 #  define      STRDUP  strdup
-#  define       WSTRDUP wcsdup
+#  define       WCSDUP  wcsdup
 #endif /* !ENABLE_CUSTOM_MEMORY_ALLOCATOR */
 
 extern void *
@@ -122,4 +122,10 @@ hash_u64(u64 n)
        return n * 0x9e37fffffffc0001ULL;
 }
 
+#ifdef __WIN32__
+#  define OS_PREFERRED_PATH_SEPARATOR L'\\'
+#else
+#  define OS_PREFERRED_PATH_SEPARATOR '/'
+#endif
+
 #endif /* _WIMLIB_UTIL_H */