Blame lib/getopt.in.h

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