9 date 2004.12.06.04.54.00; author kenth; state Exp;
24 * getopt.h - cpp wrapper for my_getopt to make it look like getopt.
25 * Copyright 1997, 2000, 2001, 2002, Benjamin Sittler
27 * Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
30 * restriction, including without limitation the rights to use, copy,
31 * modify, merge, publish, distribute, sublicense, and/or sell copies
32 * of the Software, and to permit persons to whom the Software is
33 * furnished to do so, subject to the following conditions:
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45 * DEALINGS IN THE SOFTWARE.
48 #ifndef MY_WRAPPER_GETOPT_H_INCLUDED
49 #define MY_WRAPPER_GETOPT_H_INCLUDED
55 #include "my_getopt.h"
58 #define getopt my_getopt
60 #define getopt_long my_getopt_long
61 #undef getopt_long_only
62 #define getopt_long_only my_getopt_long_only
63 #undef _getopt_internal
64 #define _getopt_internal _my_getopt_internal
66 #define opterr my_opterr
68 #define optind my_optind
70 #define optopt my_optopt
72 #define optarg my_optarg
78 #endif /* MY_WRAPPER_GETOPT_H_INCLUDED */