diff options
author | Michael Wallner <mike@php.net> | 2013-08-06 22:45:35 +0200 |
---|---|---|
committer | Michael Wallner <mike@php.net> | 2013-08-06 22:49:56 +0200 |
commit | 14caf174ff219376e4f1234bd297ffe973cc416e (patch) | |
tree | 73532567f2c68b42ad55efbbaf1d85d7f81f6255 /acinclude.m4 | |
parent | ca0497bba2222c282c39048776a9f61052e67643 (diff) | |
download | php-git-14caf174ff219376e4f1234bd297ffe973cc416e.tar.gz |
unify stdint type usage
if you need C99 stdint types, just include "php_stdint.h"
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 682be598ce..b76bd344a7 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2978,3 +2978,22 @@ $ac_bdir[$]ac_provsrc.o: \$(PHP_DTRACE_OBJS) EOF ]) + +dnl +dnl PHP_CHECK_STDINT_TYPES +dnl +AC_DEFUN([PHP_CHECK_STDINT_TYPES], [ + AC_CHECK_SIZEOF([short], 2) + AC_CHECK_SIZEOF([int], 4) + AC_CHECK_SIZEOF([long], 4) + AC_CHECK_SIZEOF([long long], 8) + AC_CHECK_TYPES([int8, int16, int32, int64, int8_t, int16_t, int32_t, int64_t, uint8, uint16, uint32, uint64, uint8_t, uint16_t, uint32_t, uint64_t, u_int8_t, u_int16_t, u_int32_t, u_int64_t], [], [], [ +#if HAVE_STDINT_H +# include <stdint.h> +#endif +#if HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif + ]) + AC_DEFINE([PHP_HAVE_STDINT_TYPES], [1], [Checked for stdint types]) +]) |