m4: lost cinttypes
authorMichael Wallner <mike@php.net>
Thu, 9 Jan 2020 19:25:14 +0000 (20:25 +0100)
committerMichael Wallner <mike@php.net>
Thu, 9 Jan 2020 19:25:14 +0000 (20:25 +0100)
m4/config_extra.m4

index 276ed6e204ae091f6467474986476b5cafef612e..2a8a211ca7d08b6602efd0e43556a4d95fa7d90c 100644 (file)
@@ -54,4 +54,24 @@ AH_TOP([
 #endif
 
 ])
+
+AH_BOTTOM([
+
+#ifndef __STDC_FORMAT_MACROS
+#  define __STDC_FORMAT_MACROS
+#endif
+
+#if defined(__cplusplus)
+#  include CINTTYPES_H
+#else
+#  include <inttypes.h>
+#endif
+
+#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
+# define HAVE_ULONG 1
+typedef unsigned long int ulong;
+#endif
+
+])
+
 ])dnl CONFIG_EXTRA