X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-isinf.c;h=d0d2cdaee731e39e1c0e31c287c8478d4c81d998;hb=70a72e0f50411ccc776379a761725d8c8bec58a3;hp=43c77ada1947a1f94d81f83b8fb98803da572b1a;hpb=2cc4af230b9c35894b9e6e3515681c0a313ad3cc;p=gnulib.git diff --git a/tests/test-isinf.c b/tests/test-isinf.c index 43c77ada1..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;