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