summaryrefslogtreecommitdiff
path: root/lib/libarchive/archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/archive.h')
-rw-r--r--lib/libarchive/archive.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive.h b/lib/libarchive/archive.h
index 23b9a9de36663..da31d4030e3d6 100644
--- a/lib/libarchive/archive.h
+++ b/lib/libarchive/archive.h
@@ -46,7 +46,7 @@
/* Get appropriate definitions of standard POSIX-style types. */
/* These should match the types used in 'struct stat' */
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
#define __LA_INT64_T __int64
# if defined(_WIN64)
# define __LA_SSIZE_T __int64
@@ -68,7 +68,7 @@
* .lib. The default here assumes you're building a DLL. Only
* libarchive source should ever define __LIBARCHIVE_BUILD.
*/
-#if ((defined __WIN32__) || (defined _WIN32)) && (!defined LIBARCHIVE_STATIC)
+#if ((defined __WIN32__) || (defined _WIN32) || defined(__CYGWIN__)) && (!defined LIBARCHIVE_STATIC)
# ifdef __LIBARCHIVE_BUILD
# ifdef __GNUC__
# define __LA_DECL __attribute__((dllexport)) extern