]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix cpio build on MinGW.
authorNiLuJe <ninuje@gmail.com>
Sun, 22 Dec 2013 22:26:04 +0000 (23:26 +0100)
committerNiLuJe <ninuje@gmail.com>
Sun, 22 Dec 2013 22:26:04 +0000 (23:26 +0100)
Exact same concept as the previous commit.

cpio/cpio_platform.h

index 31d9a738fcb0a98da1d6755d0bd131eedeb513cd..58d2edbcd7a48d82313b9e40c0364c03e38778c8 100644 (file)
 #include "config.h"
 #endif
 
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#include "cpio_windows.h"
+#endif
+
 /* Get a real definition for __FBSDID if we can */
 #if HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
@@ -70,8 +74,4 @@
 #define __LA_DEAD
 #endif
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
-#include "cpio_windows.h"
-#endif
-
 #endif /* !CPIO_PLATFORM_H_INCLUDED */