Blame include/gnu-versions.h

Packit 6c4009
/* Header with interface version macros for library pieces copied elsewhere.
Packit 6c4009
   Copyright (C) 1995-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef _GNU_VERSIONS_H
Packit 6c4009
#define	_GNU_VERSIONS_H	1
Packit 6c4009
Packit 6c4009
/* This file exists to define these few macros.  Each specifies a version
Packit 6c4009
   number associated with the library interface of a piece of the C library
Packit 6c4009
   which is also distributed with other GNU packages.  These pieces are
Packit 6c4009
   both part of the GNU C library and also distributed with other GNU
Packit 6c4009
   packages so those packages may use their facilities on systems lacking
Packit 6c4009
   the GNU C library.  The source files for each piece surround all their
Packit 6c4009
   code with `#ifndef ELIDE_CODE' after defining it with this:
Packit 6c4009
Packit 6c4009
   #define OBSTACK_INTERFACE_VERSION 1
Packit 6c4009
   #if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1
Packit 6c4009
   #include <gnu-versions.h>
Packit 6c4009
   #if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION
Packit 6c4009
   #define ELIDE_CODE
Packit 6c4009
   #endif
Packit 6c4009
   #endif
Packit 6c4009
Packit 6c4009
   This allows those one to avoid compiling those files when part of a GNU
Packit 6c4009
   package not libc, on a system using a GNU C library that supports the
Packit 6c4009
   same interface.
Packit 6c4009
Packit 6c4009
   Please preserve the format of the comments after each macro.  And
Packit 6c4009
   remember, if any of these versions change, the libc.so major version
Packit 6c4009
   number must change too (so avoid it)!  */
Packit 6c4009
Packit 6c4009
#define _GNU_OBSTACK_INTERFACE_VERSION	1 /* vs malloc/obstack.c */
Packit 6c4009
#define _GNU_REGEX_INTERFACE_VERSION	1 /* vs posix/regex.c */
Packit 6c4009
#define _GNU_GLOB_INTERFACE_VERSION	2 /* vs posix/glob.c */
Packit 6c4009
#define _GNU_GETOPT_INTERFACE_VERSION	2 /* vs posix/getopt.c and
Packit 6c4009
					     posix/getopt1.c */
Packit 6c4009
Packit 6c4009
#endif	/* gnu-versions.h */