From d7be7887803ce9cc70d3dacaee5650c0f753f3de Mon Sep 17 00:00:00 2001 From: Joakim Soderberg Date: Wed, 22 Jan 2014 11:15:17 +0100 Subject: [PATCH] Fix https-client compilation on Windows. ssize_t is not defined. But using ssize_t for s in this context makes no sense, since fread returns size_t. --- sample/https-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/https-client.c b/sample/https-client.c index 3721378b..e13ac4bd 100644 --- a/sample/https-client.c +++ b/sample/https-client.c @@ -11,7 +11,7 @@ */ // Get rid of OSX 10.7 and greater deprecation warnings. -#ifdef __clang__ +#if defined(__APPLE__) && defined(__clang__) #pragma clang diagnostic ignored "-Wdeprecated-declarations" #endif @@ -390,7 +390,7 @@ main(int argc, char **argv) * avoid needless copying. */ FILE * f = fopen(data_file, "rb"); char buf[1024]; - ssize_t s; + size_t s; size_t bytes = 0; if (!f) { -- 2.40.0