From 3aa0ebbbd6cecf8f0414e71b814c55d9237f486f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 22 Jun 2016 21:29:34 +0900 Subject: [PATCH] Revert "Robust handling for ssize_t on Win32 platform" This reverts commit c42296acf1f7a5ded3e9e76f3e05086bed28d175. --- lib/Makefile.msvc | 2 +- lib/includes/nghttp2/nghttp2.h | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/lib/Makefile.msvc b/lib/Makefile.msvc index 2b8f1848..2a930d11 100644 --- a/lib/Makefile.msvc +++ b/lib/Makefile.msvc @@ -62,7 +62,7 @@ AR := lib #LD := xilink #AR := xilib RC := rc -CFLAGS := -I./includes -Dssize_t=SSIZE_T -D_U_="" +CFLAGS := -I./includes -Dssize_t=long -D_U_="" CFLAGS_R := -nologo -MD -W3 -Z7 -DBUILDING_NGHTTP2 CFLAGS_D := -nologo -MDd -W3 -Z7 -DBUILDING_NGHTTP2 \ diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index 8e87ce4b..d567afd3 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -35,17 +35,6 @@ extern "C" { #endif -/* For Win32 application, use type NGHTTP2_SSIZE_T instead of - ssize_t. */ -#if defined(WIN32) -#pragma once -#include -typedef SSIZE_T NGHTTP2_SSIZE_T; -#if !defined(BUILDING_NGHTTP2) -#define ssize_t NGHTTP2_SSIZE_T -#endif -#endif - #include #if defined(_MSC_VER) && (_MSC_VER < 1800) /* MSVC < 2013 does not have inttypes.h because it is not C99 @@ -5014,12 +5003,6 @@ NGHTTP2_EXTERN int32_t nghttp2_stream_get_weight(nghttp2_stream *stream); NGHTTP2_EXTERN int32_t nghttp2_stream_get_sum_dependency_weight(nghttp2_stream *stream); -#if defined(WIN32) -#if !defined(BUILDING_NGHTTP2) -#undef ssize_t -#endif -#endif - #ifdef __cplusplus } #endif