#define FNM_NOMATCH 1
extern int fnmatch(const char *pattern, const char *string, int flags);
-#define mkdir(name, mode) _mkdir(name)
-
extern int win32_do_apply_dentry(const char *output_path,
size_t output_path_len,
struct wim_dentry *dentry,
extern char *realpath(const char *path, char *resolved_path);
+/* Microsoft's swprintf() violates the C standard and they require programmers
+ * to do this weird define to get the correct function. */
+#define swprintf _snwprintf
+
+/* Use Microsoft's weird _mkdir() function instead of mkdir() */
+#define mkdir(name, mode) _mkdir(name)
+
#endif /* _WIMLIB_WIN32_H */