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:
@@ -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 */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user