summaryrefslogtreecommitdiff
path: root/src/yaml_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/yaml_private.h')
-rw-r--r--src/yaml_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yaml_private.h b/src/yaml_private.h
index 540f6e2..9589e05 100644
--- a/src/yaml_private.h
+++ b/src/yaml_private.h
@@ -8,7 +8,16 @@
#include <assert.h>
#include <limits.h>
#include <stddef.h>
+
+#ifndef _MSC_VER
#include <stdint.h>
+#else
+#ifdef _WIN64
+#define PTRDIFF_MAX _I64_MAX
+#else
+#define PTRDIFF_MAX INT_MAX
+#endif
+#endif
/*
* Memory management.