]> andersk Git - libyaml.git/commitdiff
Define PTRDIFF_MAX if it's not in stdint.h
authorTina Müller <cpan2@tinita.de>
Sat, 2 Dec 2017 22:56:58 +0000 (23:56 +0100)
committerTina Müller <cpan2@tinita.de>
Sat, 23 Dec 2017 00:48:59 +0000 (01:48 +0100)
Seems to be the case on HP-UX

src/yaml_private.h

index faa28ead4418111828e0e9c77731fca7f1c8070a..ac1295b7d3331b8c95fe640d41cab9214d887784 100644 (file)
 
 #ifndef _MSC_VER
 #include <stdint.h>
+#ifndef PTRDIFF_MAX /* gcc on HP-UX sucks */
+#ifdef _LP64
+#define PTRDIFF_MAX 0x7FFFFFFFFFFFFFFFLL
+#else
+#define PTRDIFF_MAX 0x7FFFFFFFL
+#endif
+#endif
 #else
 #ifdef _WIN64
 #define PTRDIFF_MAX _I64_MAX
This page took 0.221556 seconds and 5 git commands to generate.