Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-03-24 00:04:00 +0300
committerChristopher Faylor <me@cgf.cx>2005-03-24 00:04:00 +0300
commitc6190209b38d3867516e01f51cb58073088d3a8b (patch)
tree781583f354e4241821496f162e96f54f1b8366c7 /winsup/cygwin/include/ctype.h
parentfcfb011798f34a6c47b9750595d120102b066e06 (diff)
* include/ctype.h: Always define macros when inside cygwin.
(isblank): New macro.
Diffstat (limited to 'winsup/cygwin/include/ctype.h')
-rw-r--r--winsup/cygwin/include/ctype.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/include/ctype.h b/winsup/cygwin/include/ctype.h
index 8e7983a22..c317a30cd 100644
--- a/winsup/cygwin/include/ctype.h
+++ b/winsup/cygwin/include/ctype.h
@@ -40,8 +40,9 @@ int __cdecl _toupper(int);
extern const char _ctype_[];
-#ifndef __cplusplus
+#if !defined(__cplusplus) || defined(__INSIDE_CYGWIN__)
#define isalpha(c) ((_ctype_+1)[(unsigned)(c)]&(_U|_L))
+#define isblank(c) ((c) == ' ' || (c) == '\t')
#define isupper(c) ((_ctype_+1)[(unsigned)(c)]&_U)
#define islower(c) ((_ctype_+1)[(unsigned)(c)]&_L)
#define isdigit(c) ((_ctype_+1)[(unsigned)(c)]&_N)
@@ -60,7 +61,7 @@ extern const char _ctype_[];
__extension__ ({ int __x = (c); isupper(__x) ? (__x - 'A' + 'a') : __x;})
#endif /* !__cplusplus */
-#ifndef __STRICT_ANSI__
+#if !defined(__STRICT_ANSI__) || defined(__INSIDE_CYGWIN__)
#define isascii(c) ((unsigned)(c)<=0177)
#define toascii(c) ((c)&0177)
#endif