From e32c5e0f39fabfe6da7785ef46b082a42ea9f7eb Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Wed, 24 Apr 2024 09:04:21 -0700 Subject: [PATCH] algorithms: Fix windows build dev note: ``` $ grep -rn "\bssize_t\b" /lib/gcc /lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/acc_prof.h:81:/* "The datatype 'ssize_t' means a signed 32-bit integer for a 32-bit binary /lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/stddef.h:216:typedef long ssize_t; ``` --- ortools/algorithms/set_cover_model.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ortools/algorithms/set_cover_model.h b/ortools/algorithms/set_cover_model.h index a67394a949..16a17f819a 100644 --- a/ortools/algorithms/set_cover_model.h +++ b/ortools/algorithms/set_cover_model.h @@ -14,7 +14,12 @@ #ifndef OR_TOOLS_ALGORITHMS_SET_COVER_MODEL_H_ #define OR_TOOLS_ALGORITHMS_SET_COVER_MODEL_H_ -#include +#if defined(_MSC_VER) + #include + typedef std::int64_t ssize_t; +#else + #include +#endif #include #include