add _DEFAULT_SOURCE wherever _BSD_SOURCE was used
[libc-test] / src / math / scalb.c
index 786736a..4346cf5 100644 (file)
@@ -1,3 +1,6 @@
+#define _DEFAULT_SOURCE 1
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
 #include <stdint.h>
 #include <stdio.h>
 #include "mtest.h"
@@ -26,7 +29,7 @@ int main(void)
                y = scalb(p->x, p->x2);
                e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
 
-               if (!checkexcept(e, p->e, p->r)) {
+               if (!checkexceptall(e, p->e, p->r)) {
                        printf("%s:%d: bad fp exception: %s scalb(%a,%a)=%a, want %s",
                                p->file, p->line, rstr(p->r), p->x, p->x2, p->y, estr(p->e));
                        printf(" got %s\n", estr(e));