summaryrefslogtreecommitdiff
path: root/src/python/gudhi/hera
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2020-06-04 16:41:53 +0200
committerMarc Glisse <marc.glisse@inria.fr>2020-06-04 16:41:53 +0200
commit18619efce47ef7fc44ba97e9b37b7f6162f5fe1b (patch)
treef85e25a10fddec66f75d87490cd8fb80ae11028b /src/python/gudhi/hera
parent4aff8dc700a0790373d82ae24076359c09ee04c8 (diff)
Workaround for ssize_t on windows
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>