NaN for MS VS

This commit is contained in:
h_vogt 2011-07-03 19:32:27 +00:00
parent 0e6b19890f
commit e0ee07b491
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-07-03 Holger Vogt
* main.c: remove reference to 'oflag'
* ngspice.h: NaN definition for MS VS
2011-07-03 Robert Larice
* man/man1/ngnutmeg.1 ,
* man/man1/ngspice.1 :

View File

@ -173,6 +173,11 @@
#define strcasecmp _stricmp
#define snprintf _snprintf
#define inline __inline
/* NAN not available in MS VS 2008 */
#ifndef NAN
static const __int64 global_nan = 0x7ff8000000000000i64;
#define NAN (*(const double *) global_nan)
#endif
#endif

View File

@ -1004,7 +1004,7 @@ main(int argc, char **argv)
perror (log_file);
sp_shutdown (EXIT_BAD);
}
oflag = TRUE; /* All further output to -o log file */
// oflag = TRUE; /* All further output to -o log file */
#else
/* Connect stdout to file log_file and log stdout */
if (!freopen (log_file, "w", stdout)) {