1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2 /* getopt-on-non-glibc compatibility macros.
3    Copyright (C) 1989-2020 Free Software Foundation, Inc.
4    This file is part of gnulib.
5    Unlike most of the getopt implementation, it is NOT shared
6    with the GNU C Library.
7 
8    This file is free software; you can redistribute it and/or modify it
9    under the terms of the GNU General Public License as
10    published by the Free Software Foundation; either version 3 of
11    the License, or (at your option) any later version.
12 
13    This file is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    General Public License for more details.
17 
18    You should have received a copy of the GNU General Public
19    License along with gnulib; if not, see
20    <https://www.gnu.org/licenses/>.  */
21 
22 #ifndef _GETOPT_CDEFS_H
23 #define _GETOPT_CDEFS_H 1
24 
25 /* This header should not be used directly; include getopt.h or
26    unistd.h instead.  It does not have a protective #error, because
27    the guard macro for getopt.h in gnulib is not fixed.  */
28 
29 /* getopt-core.h and getopt-ext.h are shared with GNU libc, and expect
30    a number of the internal macros supplied to GNU libc's headers by
31    sys/cdefs.h.  Provide fallback definitions for all of them.  */
32 #if 1
33 # include <sys/cdefs.h>
34 #endif
35 
36 #ifndef __BEGIN_DECLS
37 # ifdef __cplusplus
38 #  define __BEGIN_DECLS extern "C" {
39 # else
40 #  define __BEGIN_DECLS /* nothing */
41 # endif
42 #endif
43 #ifndef __END_DECLS
44 # ifdef __cplusplus
45 #  define __END_DECLS }
46 # else
47 #  define __END_DECLS /* nothing */
48 # endif
49 #endif
50 
51 #ifndef __GNUC_PREREQ
52 # if defined __GNUC__ && defined __GNUC_VERSION__
53 # define __GNUC_PREREQ(maj, min) \
54         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
55 # else
56 #  define __GNUC_PREREQ(maj, min) 0
57 # endif
58 #endif
59 
60 #ifndef __THROW
61 # if defined __cplusplus && __GNUC_PREREQ (2,8)
62 #  define __THROW       throw ()
63 # else
64 #  define __THROW
65 # endif
66 #endif
67 
68 #endif /* _GETOPT_CDEFS_H */
69