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