add an explicit test for wchar_t to work with systems which provide that type but not wchar.h

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1899 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 14 years ago
parent c2386b8294
commit 91e4971f2f

@ -148,6 +148,10 @@ AC_CHECK_HEADERS(m4_flatten([
sys/wait.h
]))
AC_CHECK_TYPE([wchar_t], [],
[AC_DEFINE([wchar_t], [char], [Make sure we have wchar_t])],
[#include <stddef.h>])
dnl See if the windows target is polluting the namespace on us which
dnl will break some of the lex/yacc (e.g. bsdl) builds. We need both
dnl defines as some versions of mingw have changed names over time.

@ -31,7 +31,6 @@
#ifdef HAVE_WCHAR_H
#include <wchar.h>
#else
typedef char wchar_t;
# define mbstowcs(dst,src,n) 0
# define wcslen(str) strlen(str)
#endif

Loading…
Cancel
Save