mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
gdatetime.c: Fix MSVC builds for lack of NAN items
Use a fallback for isnan() on Visual Studio 2012 or earlier, and define NAN if it does not exist.
This commit is contained in:
committed by
Philip Withnall
parent
87e8eb67c3
commit
a2454d731a
@@ -29,6 +29,10 @@
|
||||
#ifdef G_OS_WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef NAN
|
||||
#define NAN HUGE_VAL * 0.0f
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define ASSERT_DATE(dt,y,m,d) G_STMT_START { \
|
||||
|
Reference in New Issue
Block a user