infinity and nan defined


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@323 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/REAL.c b/skeletons/REAL.c
index 79b5173..ea37965 100644
--- a/skeletons/REAL.c
+++ b/skeletons/REAL.c
@@ -12,6 +12,15 @@
 #undef	INT_MAX
 #define	INT_MAX	((int)(((unsigned int)-1) >> 1))
 
+#ifndef	INFINITY
+#define	INFINITY	HUGE_VAL
+#endif
+
+#ifndef	NAN
+static const double nan0;
+#define	NAN	(nan0/nan0)
+#endif
+
 /*
  * REAL basic type description.
  */