Blame lib/getopt.in.h

Packit 709fb3
/* Declarations for getopt.
Packit 709fb3
   Copyright (C) 1989-2017 Free Software Foundation, Inc.
Packit 709fb3
   This file is part of gnulib.
Packit 709fb3
   Unlike most of the getopt implementation, it is NOT shared
Packit 709fb3
   with the GNU C Library, which supplies a different version of
Packit 709fb3
   this file.
Packit 709fb3
Packit 709fb3
   gnulib is free software; you can redistribute it and/or modify it
Packit 709fb3
   under the terms of the GNU General Public License as
Packit 709fb3
   published by the Free Software Foundation; either version 3 of
Packit 709fb3
   the License, or (at your option) any later version.
Packit 709fb3
Packit 709fb3
   gnulib is distributed in the hope that it will be useful, but
Packit 709fb3
   WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 709fb3
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 709fb3
   General Public License for more details.
Packit 709fb3
Packit 709fb3
   You should have received a copy of the GNU General Public
Packit 709fb3
   License along with gnulib; if not, see <http://www.gnu.org/licenses/>.  */
Packit 709fb3
Packit 709fb3
#ifndef _@GUARD_PREFIX@_GETOPT_H
Packit 709fb3
Packit 709fb3
#if __GNUC__ >= 3
Packit 709fb3
@PRAGMA_SYSTEM_HEADER@
Packit 709fb3
#endif
Packit 709fb3
@PRAGMA_COLUMNS@
Packit 709fb3
Packit 709fb3
/* The include_next requires a split double-inclusion guard.  We must
Packit 709fb3
   also inform the replacement unistd.h to not recursively use
Packit 709fb3
   <getopt.h>; our definitions will be present soon enough.  */
Packit 709fb3
#if @HAVE_GETOPT_H@
Packit 709fb3
# define _GL_SYSTEM_GETOPT
Packit 709fb3
# @INCLUDE_NEXT@ @NEXT_GETOPT_H@
Packit 709fb3
# undef _GL_SYSTEM_GETOPT
Packit 709fb3
#endif
Packit 709fb3
Packit 709fb3
#define _@GUARD_PREFIX@_GETOPT_H 1
Packit 709fb3
Packit 709fb3
/* Standalone applications should #define __GETOPT_PREFIX to an
Packit 709fb3
   identifier that prefixes the external functions and variables
Packit 709fb3
   defined in getopt-core.h and getopt-ext.h.  When this happens,
Packit 709fb3
   include the headers that might declare getopt so that they will not
Packit 709fb3
   cause confusion if included after this file (if the system had
Packit 709fb3
   <getopt.h>, we have already included it).  */
Packit 709fb3
#if defined __GETOPT_PREFIX
Packit 709fb3
# if !@HAVE_GETOPT_H@
Packit 709fb3
#  define __need_system_stdlib_h
Packit 709fb3
#  include <stdlib.h>
Packit 709fb3
#  undef __need_system_stdlib_h
Packit 709fb3
#  include <stdio.h>
Packit 709fb3
#  include <unistd.h>
Packit 709fb3
# endif
Packit 709fb3
#endif
Packit 709fb3
Packit 709fb3
/* The definition of _GL_ARG_NONNULL is copied here.  */
Packit 709fb3
Packit 709fb3
#include <getopt-cdefs.h>
Packit 709fb3
#include <getopt-pfx-core.h>
Packit 709fb3
#include <getopt-pfx-ext.h>
Packit 709fb3
Packit 709fb3
#endif /* _@GUARD_PREFIX@_GETOPT_H */