forked from AuroraMiddleware/gtk
gtkcssnumbervalue.c: Include fallback-c89.c to fix build
... on older Visual Studio versions, where isinf() is not available, and copy the isinf() implementation from gdk/fallback-c89.c to gtk/fallback-c89.c.
This commit is contained in:
parent
d0d8671c02
commit
c0bc0a9ac2
@ -65,3 +65,15 @@ nearbyint (double x)
|
||||
return floor (x + 0.5);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_DECL_ISINF
|
||||
/* Unfortunately MSVC does not have finite()
|
||||
* but it does have _finite() which is the same
|
||||
* as finite() except when x is a NaN
|
||||
*/
|
||||
static inline gboolean
|
||||
isinf (double x)
|
||||
{
|
||||
return (!_finite (x) && !_isnan (x));
|
||||
}
|
||||
#endif
|
||||
|
@ -17,14 +17,14 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "gtkcssnumbervalueprivate.h"
|
||||
|
||||
#include "gtkcssenumvalueprivate.h"
|
||||
#include "gtkcssinitialvalueprivate.h"
|
||||
#include "gtkstylepropertyprivate.h"
|
||||
|
||||
#include "fallback-c89.c"
|
||||
|
||||
struct _GtkCssValue {
|
||||
GTK_CSS_VALUE_BASE
|
||||
GtkCssUnit unit;
|
||||
|
Loading…
Reference in New Issue
Block a user