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
+9
View File
@@ -38,6 +38,15 @@
/* Defined if your system has getopt.h */
@HAVE_GETOPT_H@
/* Defined if your system has iswgraph of its own*/
@HAVE_ISWGRAPH@
/* Defined if your system has wchar_t of its own */
@HAVE_WCHAR_T@
/* Defined if your system has wint_t of its own */
@HAVE_WINT_T@
#endif /* _CONFIG_UNIX_H */
+9
View File
@@ -39,5 +39,14 @@
/* Defined if your system has getopt.h */
#undef HAVE_GETOPT_H
/* Defined if your system has iswgraph of its own*/
#define HAVE_ISWGRAPH
/* Defined if your system has wchar_t of its own */
#define HAVE_WCHAR_T
/* Defined if your system has wint_t of its own */
#define HAVE_WINT_T
#endif /* _CONFIG_H */
+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 */