]> wimlib.net Git - wimlib/blobdiff - include/wimlib/win32_common.h
Windows: Use ntdll unconditionally
[wimlib] / include / wimlib / win32_common.h
index fa10469bc777c0cd0cef4aedf49c3204878b932f..5e108ec51073dd61bd126160e0b2163342402e95 100644 (file)
@@ -9,10 +9,8 @@
 #include "wimlib/types.h"
 #include "wimlib/win32.h"
 
-#ifdef WITH_NTDLL
-#  include <ntstatus.h>
-#  include <winternl.h>
-#endif
+#include <ntstatus.h>
+#include <winternl.h>
 
 extern void
 set_errno_from_GetLastError(void);
@@ -20,10 +18,8 @@ set_errno_from_GetLastError(void);
 extern void
 set_errno_from_win32_error(DWORD err);
 
-#ifdef WITH_NTDLL
 extern void
 set_errno_from_nt_status(NTSTATUS status);
-#endif
 
 extern bool
 win32_path_is_root_of_drive(const wchar_t *path);
@@ -52,8 +48,6 @@ extern BOOL (WINAPI *win32func_CreateSymbolicLinkW)(const wchar_t *lpSymlinkFile
 
 /* ntdll functions  */
 
-#ifdef WITH_NTDLL
-
 extern NTSTATUS (WINAPI *func_NtQueryInformationFile)(HANDLE FileHandle,
                                                      PIO_STATUS_BLOCK IoStatusBlock,
                                                      PVOID FileInformation,
@@ -87,8 +81,6 @@ extern DWORD (WINAPI *func_RtlNtStatusToDosError)(NTSTATUS status);
 
 extern NTSTATUS (WINAPI *func_RtlCreateSystemVolumeInformationFolder)
                        (PCUNICODE_STRING VolumeRootPath);
-#endif
-
 
 
 extern bool