mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 11:08:52 +08:00
Revert "Robust handling for ssize_t on Win32 platform"
This reverts commit c42296acf1.
This commit is contained in:
@@ -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 <basetsd.h>
|
||||
typedef SSIZE_T NGHTTP2_SSIZE_T;
|
||||
#if !defined(BUILDING_NGHTTP2)
|
||||
#define ssize_t NGHTTP2_SSIZE_T
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user