Blame lib/getopt-pfx-core.h

Packit Service fdd496
/* getopt (basic, portable features) gnulib wrapper header.
Packit Service fdd496
   Copyright (C) 1989-2017 Free Software Foundation, Inc.
Packit Service fdd496
   This file is part of gnulib.
Packit Service fdd496
   Unlike most of the getopt implementation, it is NOT shared
Packit Service fdd496
   with the GNU C Library.
Packit Service fdd496
Packit Service fdd496
   gnulib is free software; you can redistribute it and/or modify it
Packit Service fdd496
   under the terms of the GNU General Public License as
Packit Service fdd496
   published by the Free Software Foundation; either version 3 of
Packit Service fdd496
   the License, or (at your option) any later version.
Packit Service fdd496
Packit Service fdd496
   gnulib is distributed in the hope that it will be useful, but
Packit Service fdd496
   WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service fdd496
   General Public License for more details.
Packit Service fdd496
Packit Service fdd496
   You should have received a copy of the GNU General Public
Packit Service fdd496
   License along with gnulib; if not, see
Packit Service fdd496
   <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
#ifndef _GETOPT_PFX_CORE_H
Packit Service fdd496
#define _GETOPT_PFX_CORE_H 1
Packit Service fdd496
Packit Service fdd496
/* This header should not be used directly; include getopt.h or
Packit Service fdd496
   unistd.h instead.  It does not have a protective #error, because
Packit Service fdd496
   the guard macro for getopt.h in gnulib is not fixed.  */
Packit Service fdd496
Packit Service fdd496
/* Standalone applications should #define __GETOPT_PREFIX to an
Packit Service fdd496
   identifier that prefixes the external functions and variables
Packit Service fdd496
   defined in getopt-core.h and getopt-ext.h.  Systematically
Packit Service fdd496
   rename identifiers so that they do not collide with the system
Packit Service fdd496
   functions and variables.  Renaming avoids problems with some
Packit Service fdd496
   compilers and linkers.  */
Packit Service fdd496
#ifdef __GETOPT_PREFIX
Packit Service fdd496
# ifndef __GETOPT_ID
Packit Service fdd496
#  define __GETOPT_CONCAT(x, y) x ## y
Packit Service fdd496
#  define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y)
Packit Service fdd496
#  define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)
Packit Service fdd496
# endif
Packit Service fdd496
# undef getopt
Packit Service fdd496
# undef optarg
Packit Service fdd496
# undef opterr
Packit Service fdd496
# undef optind
Packit Service fdd496
# undef optopt
Packit Service fdd496
# define getopt __GETOPT_ID (getopt)
Packit Service fdd496
# define optarg __GETOPT_ID (optarg)
Packit Service fdd496
# define opterr __GETOPT_ID (opterr)
Packit Service fdd496
# define optind __GETOPT_ID (optind)
Packit Service fdd496
# define optopt __GETOPT_ID (optopt)
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#include <getopt-core.h>
Packit Service fdd496
Packit Service fdd496
#endif /* _GETOPT_PFX_CORE_H */