X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-isinf.c;h=d0d2cdaee731e39e1c0e31c287c8478d4c81d998;hb=70a72e0f50411ccc776379a761725d8c8bec58a3;hp=c1a83d30e5bbb9c3f47318ba88d6062f7f81398f;hpb=3e2d7ac6c75ad7c92d25f59d11bd455d37ba4e37;p=gnulib.git diff --git a/tests/test-isinf.c b/tests/test-isinf.c index c1a83d30e..d0d2cdaee 100644 --- a/tests/test-isinf.c +++ b/tests/test-isinf.c @@ -1,5 +1,5 @@ /* Test of isinf() substitute. - Copyright (C) 2007-2009 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 @@ -21,22 +21,15 @@ #include +/* isinf must be a macro. */ +#ifndef isinf +# error missing declaration +#endif + #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;