mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 14:00:10 +00:00
Add check to see if the C library's iswalnum can actually be used. (Not
Tue Feb 10 13:04:36 1998 Owen Taylor <owt1@cornell.edu> * configure.in: Add check to see if the C library's iswalnum can actually be used. (Not true for Linux libc-5.4.38)
This commit is contained in:
parent
6898536a02
commit
13179d42a0
@ -145,7 +145,7 @@ extern int _g_mbtowc (wchar_t *wstr, const char *str, size_t len);
|
|||||||
|
|
||||||
#endif /* X_LOCALE */
|
#endif /* X_LOCALE */
|
||||||
|
|
||||||
#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H)) && !defined(X_LOCALE)
|
#if !defined(HAVE_BROKEN_WCTYPE) && (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H)) && !defined(X_LOCALE)
|
||||||
# ifdef HAVE_WCTYPE_H
|
# ifdef HAVE_WCTYPE_H
|
||||||
# include <wctype.h>
|
# include <wctype.h>
|
||||||
# else
|
# else
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue Feb 10 13:04:36 1998 Owen Taylor <owt1@cornell.edu>
|
||||||
|
|
||||||
|
* configure.in: Add check to see if the C library's
|
||||||
|
iswalnum can actually be used. (Not true for
|
||||||
|
Linux libc-5.4.38)
|
||||||
|
|
||||||
Sat Feb 7 11:48:09 1998 Owen Taylor <owt1@cornell.edu>
|
Sat Feb 7 11:48:09 1998 Owen Taylor <owt1@cornell.edu>
|
||||||
|
|
||||||
* gstring.c gutils.c: added some additional consts in
|
* gstring.c gutils.c: added some additional consts in
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Other stuff */
|
/* Other stuff */
|
||||||
|
#undef HAVE_BROKEN_WCTYPE
|
||||||
#undef HAVE_DOPRNT
|
#undef HAVE_DOPRNT
|
||||||
#undef HAVE_FLOAT_H
|
#undef HAVE_FLOAT_H
|
||||||
#undef HAVE_LIMITS_H
|
#undef HAVE_LIMITS_H
|
||||||
@ -42,6 +43,8 @@
|
|||||||
#undef HAVE_VSNPRINTF
|
#undef HAVE_VSNPRINTF
|
||||||
#undef HAVE_VALUES_H
|
#undef HAVE_VALUES_H
|
||||||
#undef HAVE_VPRINTF
|
#undef HAVE_VPRINTF
|
||||||
|
#undef HAVE_WCHAR_H
|
||||||
|
#undef HAVE_WCTYPE_H
|
||||||
|
|
||||||
#undef NO_FD_SET
|
#undef NO_FD_SET
|
||||||
#undef NO_SYS_ERRLIST
|
#undef NO_SYS_ERRLIST
|
||||||
@ -53,10 +56,6 @@
|
|||||||
#undef SIZEOF_INT
|
#undef SIZEOF_INT
|
||||||
#undef SIZEOF_VOID_P
|
#undef SIZEOF_VOID_P
|
||||||
|
|
||||||
#undef HAVE_WCHAR_H
|
|
||||||
#undef HAVE_WCSTR_H
|
|
||||||
#undef HAVE_WCTYPE_H
|
|
||||||
|
|
||||||
|
|
||||||
/* #undef PACKAGE */
|
/* #undef PACKAGE */
|
||||||
/* #undef VERSION */
|
/* #undef VERSION */
|
||||||
|
@ -134,4 +134,27 @@ if test $gtk_ok = yes; then
|
|||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($gtk_ok)
|
AC_MSG_RESULT($gtk_ok)
|
||||||
|
|
||||||
|
# The following is necessary for Linux libc-5.4.38
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(If iswalnum() and friends are properly defined)
|
||||||
|
AC_TRY_LINK([#include <stdlib.h>],[
|
||||||
|
#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
|
||||||
|
# ifdef HAVE_WCTYPE_H
|
||||||
|
# include <wctype.h>
|
||||||
|
# else
|
||||||
|
# ifdef HAVE_WCHAR_H
|
||||||
|
# include <wchar.h>
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
|
||||||
|
#endif
|
||||||
|
iswalnum((wchar_t) 0);
|
||||||
|
], gtk_ok=yes, gtk_ok=no)
|
||||||
|
|
||||||
|
if test $gtk_ok = no; then
|
||||||
|
AC_DEFINE(HAVE_BROKEN_WCTYPE)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($gtk_ok)
|
||||||
|
|
||||||
AC_OUTPUT(Makefile)
|
AC_OUTPUT(Makefile)
|
||||||
|
@ -32,9 +32,11 @@
|
|||||||
#undef NO_SYS_SIGLIST
|
#undef NO_SYS_SIGLIST
|
||||||
|
|
||||||
#undef HAVE_WCHAR_H
|
#undef HAVE_WCHAR_H
|
||||||
#undef HAVE_WCSTR_H
|
|
||||||
#undef HAVE_WCTYPE_H
|
#undef HAVE_WCTYPE_H
|
||||||
|
|
||||||
|
/* Define if iswalnum(), etc. should not be used */
|
||||||
|
#undef HAVE_BROKEN_WCTYPE
|
||||||
|
|
||||||
/* #undef PACKAGE */
|
/* #undef PACKAGE */
|
||||||
/* #undef VERSION */
|
/* #undef VERSION */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user