From: Ulrich Drepper Date: Sat, 18 Dec 1999 23:04:30 +0000 (+0000) Subject: (NAN): Rename union to avoid duplicate definition with function __nan. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6ad8d01701a3363afb504ba09b24231b8d2956f;p=thirdparty%2Fglibc.git (NAN): Rename union to avoid duplicate definition with function __nan. --- diff --git a/sysdeps/ieee754/bits/nan.h b/sysdeps/ieee754/bits/nan.h index 1f385ffc000..fbabd7e29a7 100644 --- a/sysdeps/ieee754/bits/nan.h +++ b/sysdeps/ieee754/bits/nan.h @@ -1,5 +1,5 @@ /* `NAN' constant for IEEE 754 machines. - Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1992, 1996, 1997, 1999 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 @@ -42,7 +42,7 @@ # define __nan_bytes { 0, 0, 0xc0, 0x7f } # endif -static union { unsigned char __c[4]; float __d; } __nan = { __nan_bytes }; -# define NAN (__nan.__d) +static union { unsigned char __c[4]; float __d; } __nan_union = { __nan_bytes }; +# define NAN (__nan_union.__d) #endif /* GCC. */