# 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>
# define REALLOC realloc
# define CALLOC calloc
# define STRDUP strdup
-# define WSTRDUP wcsdup
+# define WCSDUP wcsdup
#endif /* !ENABLE_CUSTOM_MEMORY_ALLOCATOR */
+extern void *
+memdup(const void *mem, size_t size) _malloc_attribute;
/* util.c */
extern void
return n * 0x9e37fffffffc0001ULL;
}
+#ifdef __WIN32__
+# define OS_PREFERRED_PATH_SEPARATOR L'\\'
+#else
+# define OS_PREFERRED_PATH_SEPARATOR '/'
+#endif
+
#endif /* _WIMLIB_UTIL_H */