18c08b9641
This patch adds support for building strfromf128 as an alias of strfroml, in the case of __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128. Tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by this patch. Also tested together with changes to enable float128 aliases. * stdlib/strfroml.c: Include <bits/floatn.h>. [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128): Define before include of <stdlib.h> and undefine afterwards, then define as weak alias.
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/* Definitions for strfroml. Implementation in stdlib/strfrom-skeleton.c.
|
|
Copyright (C) 2016-2017 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
#include <bits/floatn.h>
|
|
|
|
#define FLOAT long double
|
|
#define STRFROM strfroml
|
|
|
|
#if __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128
|
|
# define strfromf128 __hide_strfromf128
|
|
# include <stdlib.h>
|
|
# undef strfromf128
|
|
#endif
|
|
|
|
#include "strfrom-skeleton.c"
|
|
|
|
#if __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128
|
|
weak_alias (strfroml, strfromf128)
|
|
#endif
|