Fixed wint_t type detection again
authorSergey Vlasov <vsu@users.sourceforge.net>
Sat, 28 Apr 2001 20:08:34 +0000 (20:08 +0000)
committerSergey Vlasov <vsu@users.sourceforge.net>
Sat, 28 Apr 2001 20:08:34 +0000 (20:08 +0000)
ChangeLog.claws
configure.in

index 222d81fb9a8ca41bcf8a670828d9991894f1cacb..99d87d3028ac0cd2e1ed45576cdecd305bfe5fd0 100644 (file)
@@ -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
index bbbcdecbafe12c7343cba32d1eefdd4648a18c95..fe3ce12ae57d828c94ea16911859b8a06524cce8 100644 (file)
@@ -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 <wchar.h>
+#endif
+])
 
 GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF)
 AC_CHECK_SIZEOF(unsigned short, 2)