home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ldapsdk.zip / include / getopt-compat.h < prev    next >
C/C++ Source or Header  |  2001-06-02  |  1KB  |  36 lines

  1. /* $OpenLDAP: pkg/ldap/include/getopt-compat.h,v 1.5.8.4 2001/06/02 00:33:02 kurt Exp $ */
  2. /*
  3.  * Copyright 1998-2001 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 */
  36.