]> git.sur5r.net Git - openldap/blob - include/ac/ctype.h
Import from devel
[openldap] / include / ac / ctype.h
1 /* Generic ctype.h */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms are permitted only
8  * as authorized by the OpenLDAP Public License.  A copy of this
9  * license is available at http://www.OpenLDAP.org/license.html or
10  * in file LICENSE in the top-level directory of the distribution.
11  */
12
13 #ifndef _AC_CTYPE_H
14 #define _AC_CTYPE_H
15
16 #include <ctype.h>
17
18 #undef TOUPPER
19 #undef TOLOWER
20
21 #ifdef C_UPPER_LOWER
22 # define TOUPPER(c)     (islower(c) ? toupper(c) : (c))
23 # define TOLOWER(c)     (isupper(c) ? tolower(c) : (c))
24 #else
25 # define TOUPPER(c)     toupper(c)
26 # define TOLOWER(c)     tolower(c)
27 #endif
28
29 #endif /* _AC_CTYPE_H */