New module 'ctype'.
[gnulib.git] / lib / ctype.in.h
1 /* A substitute for ISO C99 <ctype.h>, for platforms on which it is incomplete.
2
3    Copyright (C) 2009 Free Software Foundation, Inc.
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2, or (at your option)
8    any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software Foundation,
17    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18
19 /* Written by Bruno Haible.  */
20
21 /*
22  * ISO C 99 <ctype.h> for platforms on which it is incomplete.
23  * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h.html>
24  */
25
26 #ifndef _GL_CTYPE_H
27
28 #if __GNUC__ >= 3
29 @PRAGMA_SYSTEM_HEADER@
30 #endif
31
32 /* Include the original <ctype.h>.  */
33 /* The include_next requires a split double-inclusion guard.  */
34 #@INCLUDE_NEXT@ @NEXT_CTYPE_H@
35
36 #ifndef _GL_CTYPE_H
37 #define _GL_CTYPE_H
38
39 /* Return non-zero if c is a blank, i.e. a space or tab character.  */
40 #if @GNULIB_ISBLANK@
41 # if !@HAVE_ISBLANK@
42 extern int isblank (int c);
43 # endif
44 #elif defined GNULIB_POSIXCHECK
45 # undef isblank
46 # define isblank(c) \
47     (GL_LINK_WARNING ("isblank is unportable - " \
48                       "use gnulib module isblank for portability"), \
49      isblank (c))
50 #endif
51
52 #endif /* _GL_CTYPE_H */
53 #endif /* _GL_CTYPE_H */