summaryrefslogtreecommitdiff
path: root/src/python/gudhi/hera
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/gudhi/hera')
-rw-r--r--src/python/gudhi/hera/bottleneck.cc8
1 files changed, 8 insertions, 0 deletions
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 <cstddef>
+typedef std::ptrdiff_t ssize_t;
+#endif
+
#include <bottleneck.h> // Hera
#include <pybind11_diagram_utils.h>