1 /* -*- buffer-read-only: t -*- vi: set ro: */ 2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 3 /* getopt (basic, portable features) gnulib wrapper header. 4 Copyright (C) 1989-2019 Free Software Foundation, Inc. 5 This file is part of gnulib. 6 Unlike most of the getopt implementation, it is NOT shared 7 with the GNU C Library. 8 9 This file is free software; you can redistribute it and/or modify it 10 under the terms of the GNU General Public License as 11 published by the Free Software Foundation; either version 3 of 12 the License, or (at your option) any later version. 13 14 This file is distributed in the hope that it will be useful, but 15 WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 General Public License for more details. 18 19 You should have received a copy of the GNU General Public 20 License along with gnulib; if not, see 21 <https://www.gnu.org/licenses/>. */ 22 23 #ifndef _GETOPT_PFX_CORE_H 24 #define _GETOPT_PFX_CORE_H 1 25 26 /* This header should not be used directly; include getopt.h or 27 unistd.h instead. It does not have a protective #error, because 28 the guard macro for getopt.h in gnulib is not fixed. */ 29 30 /* Standalone applications should #define __GETOPT_PREFIX to an 31 identifier that prefixes the external functions and variables 32 defined in getopt-core.h and getopt-ext.h. Systematically 33 rename identifiers so that they do not collide with the system 34 functions and variables. Renaming avoids problems with some 35 compilers and linkers. */ 36 #ifdef __GETOPT_PREFIX 37 # ifndef __GETOPT_ID 38 # define __GETOPT_CONCAT(x, y) x ## y 39 # define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y) 40 # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y) 41 # endif 42 # undef getopt 43 # undef optarg 44 # undef opterr 45 # undef optind 46 # undef optopt 47 # define getopt __GETOPT_ID (getopt) 48 # define optarg __GETOPT_ID (optarg) 49 # define opterr __GETOPT_ID (opterr) 50 # define optind __GETOPT_ID (optind) 51 # define optopt __GETOPT_ID (optopt) 52 53 /* The system's getopt.h may have already included getopt-core.h to 54 declare the unprefixed identifiers. Undef _GETOPT_CORE_H so that 55 getopt-core.h declares them with prefixes. */ 56 # undef _GETOPT_CORE_H 57 #endif 58 59 #include <getopt-core.h> 60 61 #endif /* _GETOPT_PFX_CORE_H */ 62