]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Better fix.
authorNiLuJe <ninuje@gmail.com>
Sun, 22 Dec 2013 22:13:14 +0000 (23:13 +0100)
committerNiLuJe <ninuje@gmail.com>
Sun, 22 Dec 2013 22:13:14 +0000 (23:13 +0100)
Restore e6d1e13b2880ab0e6166e5ed168df7e6e0de943b,
and make sure that we include windows.h earlier for the CLI tools.

libarchive/archive_entry.h
tar/bsdtar_platform.h

index 590b501a441e426fb9a20260f24c46f76a0d6fe9..2f7fc6d1e46e870d2f19318f57691f623939cc51 100644 (file)
 #include <stddef.h>  /* for wchar_t */
 #include <time.h>
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
-#include <windows.h>
-#endif
-
 /* Get a suitable 64-bit integer type. */
 #if defined(_WIN32) && !defined(__CYGWIN__)
 # define       __LA_INT64_T    __int64
index 45228f504f8491972e65a4b90ff30327eb8cd091..e73f9828b3b0b0a536169fde5df5ced0953253ad 100644 (file)
 #include "config.h"
 #endif
 
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#include "bsdtar_windows.h"
+#endif
+
 /* Get a real definition for __FBSDID if we can */
 #if HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
 #define        __LA_DEAD
 #endif
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
-#include "bsdtar_windows.h"
-#endif
-
 #endif /* !BSDTAR_PLATFORM_H_INCLUDED */