From 18619efce47ef7fc44ba97e9b37b7f6162f5fe1b Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Thu, 4 Jun 2020 16:41:53 +0200 Subject: Workaround for ssize_t on windows --- src/python/gudhi/hera/bottleneck.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/python') diff --git a/src/python/gudhi/hera/bottleneck.cc b/src/python/gudhi/hera/bottleneck.cc index e00b4682..f543613e 100644 --- a/src/python/gudhi/hera/bottleneck.cc +++ b/src/python/gudhi/hera/bottleneck.cc @@ -8,6 +8,14 @@ * - YYYY/MM Author: Description of the modification */ +// https://github.com/grey-narn/hera/issues/3 +// ssize_t is a non-standard type (well, posix) +// BaseTsd.h provides SSIZE_T on windows, this one should be the same there. +#ifdef _MSC_VER +#include +typedef std::ptrdiff_t ssize_t; +#endif + #include // Hera #include -- cgit v1.2.3