Skip to content
Snippets Groups Projects
Commit c1b6e0bde133 authored by Andy Grundman's avatar Andy Grundman
Browse files
parent 6e7641e597c9
Branches
No related tags found
No related merge requests found
......@@ -9,4 +9,8 @@
#include <stddef.h>
#ifndef _MSC_VER
#if defined(__sun) || defined(__sun__)
#include <sys/inttypes.h>
#define PTRDIFF_MAX INT_MAX
#else
#include <stdint.h>
......@@ -12,8 +16,8 @@
#include <stdint.h>
#ifndef PTRDIFF_MAX /* gcc on HP-UX sucks */
#ifndef PTRDIFF_MAX /* gcc on HP-UX */
#ifdef _LP64
#define PTRDIFF_MAX 0x7FFFFFFFFFFFFFFFLL
#else
#define PTRDIFF_MAX 0x7FFFFFFFL
#endif
#endif
......@@ -14,9 +18,10 @@
#ifdef _LP64
#define PTRDIFF_MAX 0x7FFFFFFFFFFFFFFFLL
#else
#define PTRDIFF_MAX 0x7FFFFFFFL
#endif
#endif
#endif
#else
#ifdef _WIN64
#define PTRDIFF_MAX _I64_MAX
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment