]> wimlib.net Git - wimlib/commitdiff
wof.h: guard by __WIN32__
authorEric Biggers <ebiggers3@gmail.com>
Fri, 5 Aug 2022 05:03:21 +0000 (22:03 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 5 Aug 2022 05:29:15 +0000 (22:29 -0700)
This is needed for the wlfuzz program to compile on non-Windows.

include/wimlib/wof.h

index 4cab2bba081e707edd9a82586b10414ca18387d7..56283d286f4ace8dec31d0d38f7078308c7dff09 100644 (file)
@@ -34,6 +34,8 @@
 #include "wimlib/compiler.h"
 #include "wimlib/types.h"
 
+#ifdef __WIN32__
+
 /*
  * The Windows Overlay Filesystem filter (WOF, a.k.a. wof.sys) is a filesystem
  * filter driver, available in Windows 8.1 and later, which allows files to be
@@ -423,4 +425,6 @@ wof_check_structs(void)
        STATIC_ASSERT(sizeof(struct WimOverlay_dat_entry_2) == 104);
 }
 
+#endif /* __WIN32__ */
+
 #endif /* _WOF_H_ */