diff options
Diffstat (limited to 'glib/gdatetime.c')
-rw-r--r-- | glib/gdatetime.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glib/gdatetime.c b/glib/gdatetime.c index 02cc3bd01..a43efab0b 100644 --- a/glib/gdatetime.c +++ b/glib/gdatetime.c @@ -80,6 +80,11 @@ #ifndef G_OS_WIN32 #include <sys/time.h> #include <time.h> +#else +#if defined (_MSC_VER) && (_MSC_VER < 1800) +/* fallback implementation for isnan() on VS2012 and earlier */ +#define isnan _isnan +#endif #endif /* !G_OS_WIN32 */ /** |