Skip to content

Commit

Permalink
Update ports/hiredis/portfile.cmake
Browse files Browse the repository at this point in the history
Co-authored-by: Billy O'Neal <bion@microsoft.com>
  • Loading branch information
JackBoosY and BillyONeal committed Jul 8, 2022
1 parent 773e041 commit 15a25d9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions ports/hiredis/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,13 @@ endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/hiredis/hiredis.h"
[[typedef long long ssize_t;
#define _SSIZE_T_ /* for compatibility with libuv */]]
[[#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
typedef long long ssize_t;
#define _SSIZE_T_ /* for compatibility with libuv */
#endif]]
[[typedef intptr_t ssize_t;]]
)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/hiredis/sds.h"
[[typedef long long ssize_t;
#define SSIZE_MAX (LLONG_MAX >> 1)]]
[[#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
typedef long long ssize_t;
#define SSIZE_MAX (LLONG_MAX >> 1)
#endif]]
[[typedef intptr_t ssize_t;
#define SSIZE_MAX INTPTR_MAX]]
)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
Expand Down

0 comments on commit 15a25d9

Please sign in to comment.