From: Tim Kientzle Date: Mon, 29 Dec 2008 00:16:37 +0000 (-0500) Subject: Correct ssize_t for 32-bit and 64-bit Windows X-Git-Tag: v2.7.0~541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b05b5e149fc407ffdb700784a75f973bc3ec2394;p=thirdparty%2Flibarchive.git Correct ssize_t for 32-bit and 64-bit Windows Submitted by: Michihiro NAKAJIMA SVN-Revision: 299 --- diff --git a/libarchive/archive.h b/libarchive/archive.h index ab2259eca..9d065fb6c 100644 --- a/libarchive/archive.h +++ b/libarchive/archive.h @@ -47,7 +47,11 @@ /* These should match the types used in 'struct stat' */ #ifdef _WIN32 #define __LA_INT64_T __int64 -#define __LA_SSIZE_T long +# if defined(_WIN64) +# define __LA_SSIZE_T __int64 +# else +# define __LA_SSIZE_T long +# endif #define __LA_UID_T unsigned int #define __LA_GID_T unsigned int #else