]> git.sur5r.net Git - openldap/blob - include/ac/ctype.h
Happy new year
[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.  A copy of this license is available at
10  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
11  * top-level directory of the distribution.
12  */
13
14 #ifndef _AC_CTYPE_H
15 #define _AC_CTYPE_H
16
17 #include <ctype.h>
18
19 #undef TOUPPER
20 #undef TOLOWER
21
22 #ifdef C_UPPER_LOWER
23 # define TOUPPER(c)     (islower(c) ? toupper(c) : (c))
24 # define TOLOWER(c)     (isupper(c) ? tolower(c) : (c))
25 #else
26 # define TOUPPER(c)     toupper(c)
27 # define TOLOWER(c)     tolower(c)
28 #endif
29
30 #endif /* _AC_CTYPE_H */