]> wimlib.net Git - wimlib/blobdiff - include/wimlib/win32_common.h
Win32: Adjust error printing
[wimlib] / include / wimlib / win32_common.h
index ce23f1960c87c75f5110c3309a8230d219b7bf7d..0d594f6a831ddf6bad4e20723579522949e77718 100644 (file)
@@ -9,26 +9,20 @@
 #include "wimlib/types.h"
 #include "wimlib/win32.h"
 
+extern void
+set_errno_from_GetLastError(void);
 
-#ifdef ENABLE_ERROR_MESSAGES
 extern void
-win32_error(DWORD err_code);
-#else
-static inline void
-win32_error(DWORD err_code)
-{
-}
-#endif
+set_errno_from_win32_error(DWORD err);
 
+#ifdef WITH_NTDLL
 extern void
-set_errno_from_GetLastError(void);
+set_errno_from_nt_status(DWORD status);
+#endif
 
 extern bool
 win32_path_is_root_of_drive(const wchar_t *path);
 
-extern int
-win32_error_to_errno(DWORD err_code);
-
 extern int
 win32_get_vol_flags(const wchar_t *path, unsigned *vol_flags_ret,
                    bool *supports_SetFileShortName_ret);