Blame gnulib/lib/getopt-cdefs.in.h

Packit Service a2ae7a
/* getopt-on-non-glibc compatibility macros.
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.
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
Packit Service a2ae7a
   <https://www.gnu.org/licenses/>.  */
Packit Service a2ae7a
Packit Service a2ae7a
#ifndef _GETOPT_CDEFS_H
Packit Service a2ae7a
#define _GETOPT_CDEFS_H 1
Packit Service a2ae7a
Packit Service a2ae7a
/* This header should not be used directly; include getopt.h or
Packit Service a2ae7a
   unistd.h instead.  It does not have a protective #error, because
Packit Service a2ae7a
   the guard macro for getopt.h in gnulib is not fixed.  */
Packit Service a2ae7a
Packit Service a2ae7a
/* getopt-core.h and getopt-ext.h are shared with GNU libc, and expect
Packit Service a2ae7a
   a number of the internal macros supplied to GNU libc's headers by
Packit Service a2ae7a
   sys/cdefs.h.  Provide fallback definitions for all of them.  */
Packit Service a2ae7a
#if @HAVE_SYS_CDEFS_H@
Packit Service a2ae7a
# include <sys/cdefs.h>
Packit Service a2ae7a
#endif
Packit Service a2ae7a
Packit Service a2ae7a
#ifndef __BEGIN_DECLS
Packit Service a2ae7a
# ifdef __cplusplus
Packit Service a2ae7a
#  define __BEGIN_DECLS extern "C" {
Packit Service a2ae7a
# else
Packit Service a2ae7a
#  define __BEGIN_DECLS /* nothing */
Packit Service a2ae7a
# endif
Packit Service a2ae7a
#endif
Packit Service a2ae7a
#ifndef __END_DECLS
Packit Service a2ae7a
# ifdef __cplusplus
Packit Service a2ae7a
#  define __END_DECLS }
Packit Service a2ae7a
# else
Packit Service a2ae7a
#  define __END_DECLS /* nothing */
Packit Service a2ae7a
# endif
Packit Service a2ae7a
#endif
Packit Service a2ae7a
Packit Service a2ae7a
#ifndef __GNUC_PREREQ
Packit Service a2ae7a
# if defined __GNUC__ && defined __GNUC_VERSION__
Packit Service a2ae7a
# define __GNUC_PREREQ(maj, min) \
Packit Service a2ae7a
        ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
Packit Service a2ae7a
# else
Packit Service a2ae7a
#  define __GNUC_PREREQ(maj, min) 0
Packit Service a2ae7a
# endif
Packit Service a2ae7a
#endif
Packit Service a2ae7a
Packit Service a2ae7a
#ifndef __THROW
Packit Service a2ae7a
# if defined __cplusplus && __GNUC_PREREQ (2,8)
Packit Service a2ae7a
#  define __THROW       throw ()
Packit Service a2ae7a
# else
Packit Service a2ae7a
#  define __THROW
Packit Service a2ae7a
# endif
Packit Service a2ae7a
#endif
Packit Service a2ae7a
Packit Service a2ae7a
#endif /* _GETOPT_CDEFS_H */