]> wimlib.net Git - wimlib/blobdiff - include/wimlib/win32.h
Make win32.h includable on non-Windows
[wimlib] / include / wimlib / win32.h
index 9ab141f1543968efc24da15f02bd95c909511890..dd3c5c9c1c24dd72cc0c2ece75649d164b3e391b 100644 (file)
@@ -1,9 +1,7 @@
 #ifndef _WIMLIB_WIN32_H
 #define _WIMLIB_WIN32_H
 
 #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"
 
 #include "wimlib/callback.h"
 #include "wimlib/types.h"
@@ -56,4 +54,6 @@ pread(int fd, void *buf, size_t count, off_t offset);
 extern ssize_t
 pwrite(int fd, const void *buf, size_t count, off_t offset);
 
 extern ssize_t
 pwrite(int fd, const void *buf, size_t count, off_t offset);
 
+#endif /* __WIN32__ */
+
 #endif /* _WIMLIB_WIN32_H */
 #endif /* _WIMLIB_WIN32_H */