define NAN for non C99 environments

This commit is contained in:
rlar 2012-01-28 11:57:43 +00:00
parent 9e3436004f
commit b4424c9d2c
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-01-28 Robert Larice
* src/include/ngspice/ngspice.h :
define NAN for non C99 environments
2012-01-28 Holger Vogt
* configure.ac, compile_min.sh: prepare for release 24
* mifdelete.c: prevent crash upon 'reset', if codemodel is an array
@ -8,8 +12,8 @@
prepare for release 24
2012-01-24 Dietmar Warning
* src/spicelib/devices/bjt/bjttemp.c: Add temperature dependent
junction potentials also for tlevc=1 capacitor temperature model
* src/spicelib/devices/bjt/bjttemp.c: Add temperature dependent
junction potentials also for tlevc=1 capacitor temperature model
2012-01-15 Robert Larice
* src/spicelib/devices/hisim2/hsm2eval.c ,

View File

@ -182,6 +182,10 @@
#pragma warning(disable: 4127)
#endif
// for non C99 environments
#if !defined(NAN)
#define NAN (0.0/0.0)
#endif
/* Fast random number generator */
//#define FastRand