#ifndef _WIMLIB_WIN32_H
#define _WIMLIB_WIN32_H
-#ifndef __WIN32__
-# error "This header is for Win32 only"
-#endif
+#ifdef __WIN32__
#include "wimlib/callback.h"
#include "wimlib/types.h"
extern ssize_t
pwrite(int fd, const void *buf, size_t count, off_t offset);
+#endif /* __WIN32__ */
+
#endif /* _WIMLIB_WIN32_H */
#include "wimlib/error.h"
#include "wimlib/list.h"
#include "wimlib/util.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h" /* win32_get_number_of_processors() */
-#endif
+#include "wimlib/win32.h" /* win32_get_number_of_processors() */
struct message_queue {
struct list_head list;
#include "wimlib.h"
#include "wimlib/error.h"
#include "wimlib/util.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h"
-#endif
+#include "wimlib/win32.h"
#ifdef ENABLE_ERROR_MESSAGES
bool wimlib_print_errors = false;
#include "wimlib/resource.h"
#include "wimlib/security.h"
#include "wimlib/unix_data.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h" /* for realpath() equivalent */
-#endif
-#include "wimlib/xml.h"
#include "wimlib/wildcard.h"
#include "wimlib/wim.h"
+#include "wimlib/win32.h" /* for realpath() equivalent */
+#include "wimlib/xml.h"
#define WIMLIB_EXTRACT_FLAG_FROM_PIPE 0x80000000
#define WIMLIB_EXTRACT_FLAG_IMAGEMODE 0x40000000
#include "wimlib/error.h"
#include "wimlib/file_io.h"
#include "wimlib/util.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h" /* For pread(), pwrite() replacements */
-#endif
+#include "wimlib/win32.h" /* For pread(), pwrite() replacements */
/* Wrapper around read() that checks for errors keeps retrying until all
* requested bytes have been read or until end-of file has occurred.
#include "wimlib/endianness.h"
#include "wimlib/error.h"
#include "wimlib/file_io.h"
-#include "wimlib/ntfs_3g.h" /* for read_ntfs_attribute_prefix() */
+#include "wimlib/ntfs_3g.h"
#include "wimlib/resource.h"
#include "wimlib/sha1.h"
#include "wimlib/wim.h"
-
-#ifdef __WIN32__
-/* for read_winnt_stream_prefix(), read_win32_encrypted_file_prefix() */
-# include "wimlib/win32.h"
-#endif
+#include "wimlib/win32.h"
/*
* Compressed WIM resources
#include "wimlib/security.h"
#include "wimlib/wim.h"
#include "wimlib/xml.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h" /* for realpath() replacement */
-#endif
+#include "wimlib/win32.h"
/* Information about the available compression types for the WIM format. */
static const struct {
#include "wimlib/progress.h"
#include "wimlib/resource.h"
#include "wimlib/solid.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h" /* win32_rename_replacement() */
-#endif
+#include "wimlib/win32.h" /* win32_rename_replacement() */
#include "wimlib/write.h"
#include "wimlib/xml.h"