mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-13 00:30:07 +00:00
a48c0fb4b4
Now there are no more assembly wrappers using _LIB_VERSION or __kernel_standard, the math-svid-compat code can be slighly simplified. math-svid-compat.h no longer needs __ASSEMBLER__ conditionals, and the _LIB_VERSION variable no longer needs to be built for static libm, since all references are now in C code that includes math-svid-compat.h and so gets the macro definition of _LIB_VERSION to _POSIX_ outside the compat case. This patch makes those cleanups. Tested for x86_64, and with build-many-glibcs.py. * math/math-svid-compat.h [!__ASSEMBLER__]: Make code unconditional. * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove conditional code; define contents only for [LIBM_SVID_COMPAT].
31 lines
827 B
C
31 lines
827 B
C
/* @(#)s_lib_ver.c 5.1 93/09/24 */
|
|
/*
|
|
* ====================================================
|
|
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
|
*
|
|
* Developed at SunPro, a Sun Microsystems, Inc. business.
|
|
* Permission to use, copy, modify, and distribute this
|
|
* software is freely granted, provided that this notice
|
|
* is preserved.
|
|
* ====================================================
|
|
*/
|
|
|
|
#if defined(LIBM_SCCS) && !defined(lint)
|
|
static char rcsid[] = "$NetBSD: s_lib_version.c,v 1.6 1995/05/10 20:47:44 jtc Exp $";
|
|
#endif
|
|
|
|
/*
|
|
* MACRO for standards
|
|
*/
|
|
|
|
#include <math-svid-compat.h>
|
|
|
|
/*
|
|
* define and initialize _LIB_VERSION
|
|
*/
|
|
#undef _LIB_VERSION
|
|
#if LIBM_SVID_COMPAT
|
|
_LIB_VERSION_TYPE _LIB_VERSION_INTERNAL = _POSIX_;
|
|
compat_symbol (libm, _LIB_VERSION_INTERNAL, _LIB_VERSION, GLIBC_2_0);
|
|
#endif
|