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:
@ -65,3 +65,15 @@ nearbyint (double x)
|
|||||||
return floor (x + 0.5);
|
return floor (x + 0.5);
|
||||||
}
|
}
|
||||||
#endif
|
#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 "config.h"
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#include "gtkcssnumbervalueprivate.h"
|
#include "gtkcssnumbervalueprivate.h"
|
||||||
|
|
||||||
#include "gtkcssenumvalueprivate.h"
|
#include "gtkcssenumvalueprivate.h"
|
||||||
#include "gtkcssinitialvalueprivate.h"
|
#include "gtkcssinitialvalueprivate.h"
|
||||||
#include "gtkstylepropertyprivate.h"
|
#include "gtkstylepropertyprivate.h"
|
||||||
|
|
||||||
|
#include "fallback-c89.c"
|
||||||
|
|
||||||
struct _GtkCssValue {
|
struct _GtkCssValue {
|
||||||
GTK_CSS_VALUE_BASE
|
GTK_CSS_VALUE_BASE
|
||||||
GtkCssUnit unit;
|
GtkCssUnit unit;
|
||||||
|
Reference in New Issue
Block a user