Blame lib/getopt.in.h

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