mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 08:28:03 +02:00
Do not check for feclearexcept
Unlike feenableexcept and fedisableexcept, which are GNU extensions, feclearexcept is part of C99. https://en.cppreference.com/w/c/header/fenv.html
This commit is contained in:
parent
44d3bd5ab2
commit
3834a79741
2 changed files with 4 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ check_headers = [
|
|||
['sys/wait.h'],
|
||||
['sys/stat.h'],
|
||||
['io.h'],
|
||||
['fenv.h', {'check-funcs': ['feenableexcept', 'fedisableexcept', 'feclearexcept']}],
|
||||
['fenv.h', {'check-funcs': ['feenableexcept', 'fedisableexcept']}],
|
||||
['xlocale.h'],
|
||||
['sys/ioctl.h'],
|
||||
['intsafe.h'],
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@
|
|||
#include "config.h"
|
||||
#include "cairo-test.h"
|
||||
|
||||
#include <fenv.h>
|
||||
|
||||
#if !defined(INFINITY)
|
||||
#define INFINITY HUGE_VAL
|
||||
#endif
|
||||
|
|
@ -361,7 +363,7 @@ if ((status) == CAIRO_STATUS_SUCCESS) { \
|
|||
CHECK_STATUS (status, "cairo_rotate(∞)");
|
||||
cairo_destroy (cr2);
|
||||
|
||||
#if HAVE_FECLEAREXCEPT
|
||||
#if FE_ALL_EXCEPT
|
||||
feclearexcept (FE_INVALID);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue