Skip to content

Commit

Permalink
define __have_typedef_ssize_t (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- authored Nov 13, 2020
1 parent ddb8e54 commit ffe690c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ extern "C" {

#if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED_) && \
!defined(__DEFINED_ssize_t) && !defined(__ssize_t_defined) && \
!defined(_SSIZE_T) && !defined(_SSIZE_T_) && !defined(_SSIZE_T_DECLARED)
!defined(_SSIZE_T) && !defined(_SSIZE_T_) && \
!defined(_SSIZE_T_DECLARED) && !defined(__have_typedef_ssize_t)

// 64-bit Windows is the only mainstream platform
// where sizeof(long) != sizeof(void*)
Expand All @@ -38,7 +39,7 @@ typedef long ssize_t; /* byte count or error */
#define _SSIZE_T
#define _SSIZE_T_
#define _SSIZE_T_DECLARED

#define __have_typedef_ssize_t
#endif

#ifndef MAX_PATH
Expand Down

0 comments on commit ffe690c

Please sign in to comment.