changeset 244:4db8746bd575

Add NaN and isnan() compatibility macros to future.h
author Daniele Nicolodi <daniele@grinta.net>
date Thu, 26 Feb 2015 23:10:06 +0100
parents 17d5eb774b8f
children b1dc2ba9a315
files future.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/future.h	Thu Feb 12 22:45:44 2015 +0100
+++ b/future.h	Thu Feb 26 23:10:06 2015 +0100
@@ -3,6 +3,9 @@
 
 #define strdup(s) StrDup(s)
 
+#define NaN NotANumber()
+#define isnan(v) IsNotANumber(v)
+
 /* required for time_t definition */
 #include <time.h>