diff options
author | Rafał Mużyło <galtgendo@o2.pl> | 2011-08-03 16:42:45 +0200 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-08-03 17:15:28 -0400 |
commit | d651581036e9ee0048c6c25b37fb0f7b9e87789b (patch) | |
tree | 0166f2844325c23edf483ca9e81e3a3cc5a25fd3 | |
parent | 4fac21fc5d3a4792f9c4b27abd9cbd07ec264909 (diff) |
fix iswspace detection
Signed-off-by: Rafał Mużyło <galtgendo@o2.pl>
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/XawI18n.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index f70e53f..ac67a22 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,7 @@ PKG_PROG_PKG_CONFIG # Checks for header files. PKG_CHECK_MODULES(X11, [x11 xt xmu]) AC_CHECK_HEADERS([wctype.h wchar.h widec.h]) +AC_CHECK_FUNCS([iswspace]) AC_CONFIG_FILES([Makefile include/Makefile diff --git a/src/XawI18n.h b/src/XawI18n.h index 4c22717..388fa42 100644 --- a/src/XawI18n.h +++ b/src/XawI18n.h @@ -29,11 +29,11 @@ in this Software without prior written authorization from the X Consortium. #include <wctype.h> #ifdef HAVE_WIDEC_H #include <widec.h> -#endif #define wcslen(c) wslen(c) #define wcscpy(d,s) wscpy(d,s) #define wcsncpy(d,s,l) wsncpy(d,s,l) #endif +#endif #ifdef HAVE_WCHAR_H #include <wchar.h> @@ -70,7 +70,7 @@ extern wchar_t _Xaw_atowc ( #endif ); -#ifndef HAVE_ISW_FUNCS +#ifndef HAVE_ISWSPACE #include <ctype.h> #ifndef iswspace #define iswspace(c) (isascii(c) && isspace(toascii(c))) |