Blame gnulib/lib/getopt.in.h

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