X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-isnan.c;h=d1d05dcea42a6d3a10780175a3fb83184c70a838;hb=fba7fdb1432af9bf0abece1ec8078ed8ae3af886;hp=9a0856a0e76dfadd73267103f13999dc22c7b6bd;hpb=ecab4471c7da5d367a62c8db75ee54ed6d948e40;p=gnulib.git diff --git a/tests/test-isnan.c b/tests/test-isnan.c index 9a0856a0e..d1d05dcea 100644 --- a/tests/test-isnan.c +++ b/tests/test-isnan.c @@ -1,5 +1,5 @@ /* Test of isnand() substitute. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-2010 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 @@ -21,24 +21,16 @@ #include +/* isnan must be a macro. */ +#ifndef isnan +# error missing declaration +#endif + #include #include -#include -#include #include "nan.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0f. So we use -zero instead. */