Some detection improvements to the build system.

Also checks added form iswgraph(), wchar_t, and int_t.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1566 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-02-26 21:22:29 +00:00
parent 6e9815eca8
commit 1fc8050ce0
7 changed files with 135 additions and 5 deletions
+19
View File
@@ -116,6 +116,25 @@ typedef unsigned short mode_t;
int setenv (const char *name, const char *value, int overwrite);
#endif
#ifndef HAVE_WCHAR_T
typedef unsigned short wchar_t
#endif
#ifndef HAVE_WINT_T
typedef unsigned int wint_t
#endif
#ifdef HAVE_ISWGRAPH
# include <wctype.h>
#else
# include <ctype.h>
static inline int
iswgraph(wint_t wc)
{
return wc > 0x7f || isgraph((int) wc);
}
#endif
#endif /* _PORT_H */