2c9abf28888fce399d843948b615fff78383347f
[m6w6/ext-psi] / m4 / posix / stddef.m4
1 PSI_CHECK_STDDEF() {
2 dnl Though, autoconf manual says "This macro is obsolescent, as current systems
3 dnl have conforming header files. New programs need not use this macro.", in fact
4 dnl AC_INCLUDES_DEFAULT still relies on STDC_HEADERS
5 AC_HEADER_STDC
6
7 AC_CHECK_HEADERS(stddef.h)
8
9 PSI_TYPE(ptrdiff_t, int)
10 PSI_CONST(PTRDIFF_MIN, int)
11 PSI_CONST(PTRDIFF_MAX, int)
12 PSI_TYPE(size_t, uint)
13 PSI_CONST(SIZE_MAX, int)
14 PSI_TYPE(wchar_t, int)
15 if PSI_SH_TEST_SIZEOF(wchar_t); then :; else
16 # some platforms fail to provide wchar_t in stddef.h
17 unset ac_cv_sizeof_wchar_t
18 unset ax_cv_decl_wchar_t_signed
19 AC_CHECK_HEADERS(wchar.h)
20 PSI_TYPE(wchar_t, int)
21 fi
22 PSI_CONST(WCHAR_MIN, int)
23 PSI_CONST(WCHAR_MAX, int)
24 }