diff options
author | Tina Müller <cpan2@tinita.de> | 2017-12-02 23:56:58 +0100 |
---|---|---|
committer | Tina Müller <cpan2@tinita.de> | 2017-12-23 01:48:59 +0100 |
commit | 5672b163823573c77edda2cd395e62e4efb52fd0 (patch) | |
tree | 644a836fb1893e3614a009aba80cbfddc11e4124 /src | |
parent | 6cc8b63ff77c92a8d90dcf4f171fb3fa2d1dd12a (diff) | |
download | libyaml-git-5672b163823573c77edda2cd395e62e4efb52fd0.tar.gz |
Define PTRDIFF_MAX if it's not in stdint.h
Seems to be the case on HP-UX
Diffstat (limited to 'src')
-rw-r--r-- | src/yaml_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yaml_private.h b/src/yaml_private.h index faa28ea..ac1295b 100644 --- a/src/yaml_private.h +++ b/src/yaml_private.h @@ -10,6 +10,13 @@ #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 |