]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - math/w_ilogb_template.c
powerpc: Fix build of wcscpy with --disable-multi-arch
[thirdparty/glibc.git] / math / w_ilogb_template.c
index f18dd42e0581cbaeb9cb38be900d66a80bb281bb..b34eadac0f5b11c76c5894184d876c16ead2f48a 100644 (file)
@@ -1,5 +1,5 @@
 /* Wrapper to set errno for ilogb.
-   Copyright (C) 2012-2017 Free Software Foundation, Inc.
+   Copyright (C) 2012-2019 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
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <limits.h>
 #include <math_private.h>
+#include <fenv.h>
 
 /* wrapper ilogb */
 int
@@ -36,7 +37,3 @@ M_DECL_FUNC (__ilogb) (FLOAT x)
   return r;
 }
 declare_mgen_alias (__ilogb, ilogb)
-
-#if M_LIBM_NEED_COMPAT (ilogb)
-declare_mgen_libm_compat (__ilogb, ilogb)
-#endif