cpitf.c, for Windows, introduce csh variable "win_console"

to reflect whether this .exe is a "console" build
This commit is contained in:
h_vogt 2017-02-18 19:12:02 +01:00 committed by rlar
parent 670880086f
commit 0bf381e01d
1 changed files with 5 additions and 0 deletions

View File

@ -240,6 +240,11 @@ ft_cpinit(void)
#endif
#endif
/* set a variable to announce windows console (to be used in unselecting plotting) */
#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(HAS_WINGUI)
cp_vset("win_console", CP_BOOL, &t);
#endif
/* NGSPICEDATADIR has been set to path "$dprefix/share/ngspice" in configure.ac,
Spice_Lib_Dir has been set to NGSPICEDATADIR in conf.c,
may be overridden by environmental variable SPICE_LIB_DIR in ivars().