projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto/gc-des: Fix recent regression.
[gnulib.git]
/
tests
/
test-isinf.c
diff --git
a/tests/test-isinf.c
b/tests/test-isinf.c
index
43c77ad
..
d0d2cda
100644
(file)
--- a/
tests/test-isinf.c
+++ b/
tests/test-isinf.c
@@
-1,5
+1,5
@@
/* Test of isinf() substitute.
/* Test of isinf() substitute.
- Copyright (C) 2007-20
08
Free Software Foundation, Inc.
+ Copyright (C) 2007-20
11
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
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 <config.h>
#include <config.h>
+#include <math.h>
+
+/* isinf must be a macro. */
+#ifndef isinf
+# error missing declaration
+#endif
+
#include <float.h>
#include <limits.h>
#include <float.h>
#include <limits.h>
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#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;
float zerof = 0.0f;
double zerod = 0.0;