Blame lib/getopt.in.h

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