]>
Commit | Line | Data |
---|---|---|
28f540f4 | 1 | /* Declarations for getopt. |
688903eb | 2 | Copyright (C) 1989-2018 Free Software Foundation, Inc. |
51702635 | 3 | This file is part of the GNU C Library. |
06576cbf ZW |
4 | Unlike the bulk of the getopt implementation, this file is NOT part |
5 | of gnulib; gnulib also has a getopt.h but it is different. | |
28f540f4 | 6 | |
54d79e99 | 7 | The GNU C Library is free software; you can redistribute it and/or |
41bdb6e2 AJ |
8 | modify it under the terms of the GNU Lesser General Public |
9 | License as published by the Free Software Foundation; either | |
10 | version 2.1 of the License, or (at your option) any later version. | |
28f540f4 | 11 | |
54d79e99 UD |
12 | The GNU C Library is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 15 | Lesser General Public License for more details. |
28f540f4 | 16 | |
41bdb6e2 | 17 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
18 | License along with the GNU C Library; if not, see |
19 | <http://www.gnu.org/licenses/>. */ | |
28f540f4 RM |
20 | |
21 | #ifndef _GETOPT_H | |
10a33cf8 | 22 | #define _GETOPT_H 1 |
a379e56a | 23 | |
10a33cf8 | 24 | #include <features.h> |
7a7be6c9 ZW |
25 | |
26 | /* The type of the 'argv' argument to getopt_long and getopt_long_only | |
27 | is properly 'char **', since both functions may write to the array | |
28 | (in order to move all the options to the beginning). However, for | |
29 | compatibility with old versions of LSB, glibc has to use 'char *const *' | |
30 | instead. */ | |
31 | #ifndef __getopt_argv_const | |
32 | # define __getopt_argv_const const | |
33 | #endif | |
34 | ||
10a33cf8 ZW |
35 | #include <bits/getopt_core.h> |
36 | #include <bits/getopt_ext.h> | |
a379e56a | 37 | |
5107cf1d | 38 | #endif /* getopt.h */ |