Blame lib/getopt-cdefs.in.h

Packit Service fdd496
/* getopt-on-non-glibc compatibility macros.
Packit Service fdd496
   Copyright (C) 1989-2017 Free Software Foundation, Inc.
Packit Service fdd496
   This file is part of gnulib.
Packit Service fdd496
   Unlike most of the getopt implementation, it is NOT shared
Packit Service fdd496
   with the GNU C Library.
Packit Service fdd496
Packit Service fdd496
   gnulib is free software; you can redistribute it and/or modify it
Packit Service fdd496
   under the terms of the GNU General Public License as
Packit Service fdd496
   published by the Free Software Foundation; either version 3 of
Packit Service fdd496
   the License, or (at your option) any later version.
Packit Service fdd496
Packit Service fdd496
   gnulib is distributed in the hope that it will be useful, but
Packit Service fdd496
   WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service fdd496
   General Public License for more details.
Packit Service fdd496
Packit Service fdd496
   You should have received a copy of the GNU General Public
Packit Service fdd496
   License along with gnulib; if not, see
Packit Service fdd496
   <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
#ifndef _GETOPT_CDEFS_H
Packit Service fdd496
#define _GETOPT_CDEFS_H 1
Packit Service fdd496
Packit Service fdd496
/* This header should not be used directly; include getopt.h or
Packit Service fdd496
   unistd.h instead.  It does not have a protective #error, because
Packit Service fdd496
   the guard macro for getopt.h in gnulib is not fixed.  */
Packit Service fdd496
Packit Service fdd496
/* getopt-core.h and getopt-ext.h are shared with GNU libc, and expect
Packit Service fdd496
   a number of the internal macros supplied to GNU libc's headers by
Packit Service fdd496
   sys/cdefs.h.  Provide fallback definitions for all of them.  */
Packit Service fdd496
#if @HAVE_SYS_CDEFS_H@
Packit Service fdd496
# include <sys/cdefs.h>
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#ifndef __BEGIN_DECLS
Packit Service fdd496
# ifdef __cplusplus
Packit Service fdd496
#  define __BEGIN_DECLS extern "C" {
Packit Service fdd496
# else
Packit Service fdd496
#  define __BEGIN_DECLS /* nothing */
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
#ifndef __END_DECLS
Packit Service fdd496
# ifdef __cplusplus
Packit Service fdd496
#  define __END_DECLS }
Packit Service fdd496
# else
Packit Service fdd496
#  define __END_DECLS /* nothing */
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#ifndef __GNUC_PREREQ
Packit Service fdd496
# if defined __GNUC__ && defined __GNUC_VERSION__
Packit Service fdd496
# define __GNUC_PREREQ(maj, min) \
Packit Service fdd496
        ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
Packit Service fdd496
# else
Packit Service fdd496
#  define __GNUC_PREREQ(maj, min) 0
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#ifndef __THROW
Packit Service fdd496
# if defined __cplusplus && __GNUC_PREREQ (2,8)
Packit Service fdd496
#  define __THROW       throw ()
Packit Service fdd496
# else
Packit Service fdd496
#  define __THROW
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#endif /* _GETOPT_CDEFS_H */