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