gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / lib / isnanf-nolibm.h
index 17b3dea..dc43863 100644 (file)
@@ -1,5 +1,5 @@
 /* Test for NaN that does not need libm.
-   Copyright (C) 2007-2012 Free Software Foundation, Inc.
+   Copyright (C) 2007-2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -27,7 +27,9 @@
 # else
    /* Get declaration of isnanf(), if not declared in <math.h>.  */
 #  if defined __sgi
-#   include <ieeefp.h>
+   /* We can't include <ieeefp.h>, because it conflicts with our definition of
+      isnand.  Therefore declare isnanf separately.  */
+extern int isnanf (float x);
 #  endif
 # endif
 #else