]> granicus.if.org Git - check/commitdiff
example: provide intmax_t and uintmax_t if missing
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 5 Feb 2014 16:08:05 +0000 (16:08 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 5 Feb 2014 16:08:05 +0000 (16:08 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1096 64e312b2-a51f-0410-8e61-82d0ca0eb02a

doc/example/cmake/config.h.in

index 2a0401ed9951667d330522f246d8788dec479679..a66634b80c6b52e2d4418fc92848b325e70b5db1 100644 (file)
 
 /* Define to `int' if <sys/types.h> 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