From: brarcher Date: Wed, 5 Feb 2014 16:08:05 +0000 (+0000) Subject: example: provide intmax_t and uintmax_t if missing X-Git-Tag: 0.10.0~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fab1f1143564749b3e27176d57b2e5e448fce74;p=check example: provide intmax_t and uintmax_t if missing git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1096 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/doc/example/cmake/config.h.in b/doc/example/cmake/config.h.in index 2a0401e..a66634b 100644 --- a/doc/example/cmake/config.h.in +++ b/doc/example/cmake/config.h.in @@ -11,3 +11,14 @@ /* Define to `int' if doesn't define. */ #cmakedefine pid_t ${pid_t} + +/* Define intmax_t and uintmax_t if they are not already defined. */ +#if !defined(HAVE_INTMAX_T) +typedef int64_t intmax_t; +#define INTMAX_MIN INT64_MIN +#define INTMAX_MAX INT64_MAX +#endif + +#if !defined(HAVE_UINTMAX_T) +typedef uint64_t uintmax_t; +#endif