From 1a006fafa27b94f85d69e58ac3a53bc1980f8cbd Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Sat, 28 Apr 2001 20:08:34 +0000 Subject: [PATCH] Fixed wint_t type detection again --- ChangeLog.claws | 4 ++++ configure.in | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 222d81fb9..99d87d302 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,7 @@ +2001-04-29 [sergey] + + * configure.in: fixed wint_t typedef detection again + 2001-04-28 [hoa] * src/prefs_account.[ch], added A_LOCAL_CMD diff --git a/configure.in b/configure.in index bbbcdecba..fe3ce12ae 100644 --- a/configure.in +++ b/configure.in @@ -184,7 +184,16 @@ AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_STRUCT_TM -AC_CHECK_TYPE(wint_t, unsigned int) + +dnl AC_CHECK_TYPE(wint_t, unsigned int) does not work because wint_t +dnl may be defined only in wchar.h (this happens with gcc-2.96). +dnl So we need to use this extended macro. +sv_CHECK_TYPE(wint_t, unsigned int, +[ +#if HAVE_WCHAR_H +#include +#endif +]) GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF) AC_CHECK_SIZEOF(unsigned short, 2) -- 2.25.1