Commits

Kirill Simonov committed a5142b2

Manually define PTRDIFF_MAX for VS C compiler.

  • Participants
  • Parent commits af35994
  • Tags 0.1.5

Comments (0)

Files changed (1)

File src/yaml_private.h

 #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.