]> git.sur5r.net Git - openldap/blob - include/getopt-compat.h
Cleanup NT service support declarations
[openldap] / include / getopt-compat.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted only as authorized by the OpenLDAP
8  * Public License.  A copy of this license is available at
9  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10  * top-level directory of the distribution.
11  */
12 /*
13  * getopt(3) declarations
14  */
15 #ifndef _GETOPT_COMPAT_H
16 #define _GETOPT_COMPAT_H
17
18 #include <ldap_cdefs.h>
19
20 LDAP_BEGIN_DECL
21
22 /* change symbols to avoid clashing */
23 #define optarg lutil_optarg
24 #define optind lutil_optind
25 #define opterr lutil_opterr
26 #define optopt lutil_optopt
27 #define getopt lutil_getopt
28
29 LDAP_LUTIL_V (char *) optarg;
30 LDAP_LUTIL_V (int) optind, opterr, optopt;
31 LDAP_LUTIL_F (int) getopt LDAP_P(( int, char * const [], const char *));
32
33 LDAP_END_DECL
34
35 #endif /* _GETOPT_COMPAT_H */