infinity and nan defined

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@323 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-09-14 13:40:42 +00:00
parent 03af0f048d
commit 1d3ed28834
1 changed files with 9 additions and 0 deletions

View File

@ -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.
*/