commit | ea975880112c27293800ede36e0323ff2a7b9322 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Apr 03 20:16:21 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Apr 03 20:16:27 2015 +0000 |
tree | 3aaf38f6bd14372df87f7fa0242cf72e1b2e8e07 | |
parent | eb56013348668a292fb7302e34752a2b9cbcb834 [diff] | |
parent | 146c24461395d0752f9e79973827f78d084f7d6f [diff] |
Merge "Only Windows doesn't have %zd."
diff --git a/include/utils/Compat.h b/include/utils/Compat.h index ca4a8e0..7d96310 100644 --- a/include/utils/Compat.h +++ b/include/utils/Compat.h
@@ -41,12 +41,12 @@ #define DEFFILEMODE 0666 #endif /* _WIN32 */ -#if HAVE_PRINTF_ZD -# define ZD "%zd" -# define ZD_TYPE ssize_t +#if defined(_WIN32) +#define ZD "%ld" +#define ZD_TYPE long #else -# define ZD "%ld" -# define ZD_TYPE long +#define ZD "%zd" +#define ZD_TYPE ssize_t #endif /*