]> Dogcows Code - chaz/tar/blob - m4/mbstate_t.m4
Initial revision
[chaz/tar] / m4 / mbstate_t.m4
1 # serial 1
2
3 # From Paul Eggert.
4
5 # Some versions of BeOS define mbstate_t to be an incomplete type,
6 # so you can't declare an object of that type.
7 # Check for this incompatibility with Standard C.
8
9 AC_DEFUN(AC_MBSTATE_T_OBJECT,
10 [AC_CACHE_CHECK([for mbstate_t object type], ac_cv_type_mbstate_t_object,
11 [AC_TRY_COMPILE([#include <wchar.h>],
12 [mbstate_t x; return sizeof x;],
13 ac_cv_type_mbstate_t_object=yes,
14 ac_cv_type_mbstate_t_object=no)])
15 if test $ac_cv_type_mbstate_t_object = yes; then
16 AC_DEFINE(HAVE_MBSTATE_T_OBJECT, 1,
17 [Define if mbstate_t is an object type.])
18 fi])
This page took 0.037871 seconds and 4 git commands to generate.