Blame gnulib/lib/getopt.in.h

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