X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-isinf.c;h=d0d2cdaee731e39e1c0e31c287c8478d4c81d998;hb=977389d936eb39475d8540651074ab48fcfd85a1;hp=dffd99088b00ac94c96f24cba6ed469c9a5a820a;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-isinf.c b/tests/test-isinf.c index dffd99088..d0d2cdaee 100644 --- a/tests/test-isinf.c +++ b/tests/test-isinf.c @@ -1,5 +1,5 @@ /* Test of isinf() substitute. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2011 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 @@ -19,24 +19,17 @@ #include +#include + +/* isinf must be a macro. */ +#ifndef isinf +# error missing declaration +#endif + #include #include -#include -#include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" float zerof = 0.0f; double zerod = 0.0;