4
0

mbstate_t.m4 615 B

123456789101112131415161718
  1. # serial 1
  2. # From Paul Eggert.
  3. # Some versions of BeOS define mbstate_t to be an incomplete type,
  4. # so you can't declare an object of that type.
  5. # Check for this incompatibility with Standard C.
  6. AC_DEFUN(AC_MBSTATE_T_OBJECT,
  7. [AC_CACHE_CHECK([for mbstate_t object type], ac_cv_type_mbstate_t_object,
  8. [AC_TRY_COMPILE([#include <wchar.h>],
  9. [mbstate_t x; return sizeof x;],
  10. ac_cv_type_mbstate_t_object=yes,
  11. ac_cv_type_mbstate_t_object=no)])
  12. if test $ac_cv_type_mbstate_t_object = yes; then
  13. AC_DEFINE(HAVE_MBSTATE_T_OBJECT, 1,
  14. [Define if mbstate_t is an object type.])
  15. fi])