logstream *global_logstream = NULL;
bool logbuf::logging_enabled = true;
+#ifdef _MSC_VER
+ bool logbuf::has_console = true;
+#endif
sgDebugClass logbuf::logClass = SG_NONE;
sgDebugPriority logbuf::logPriority = SG_INFO;
streambuf* logbuf::sbuf = NULL;
*/
void set_sb( streambuf* sb );
+#ifdef _MSC_VER
+ static void has_no_console() { has_console = false; }
+#endif
+
protected:
/** sync/flush */
static streambuf* sbuf;
static bool logging_enabled;
+#ifdef _MSC_VER
+ static bool has_console;
+#endif
static sgDebugClass logClass;
static sgDebugPriority logPriority;
logbuf::overflow( int c )
{
#ifdef _MSC_VER
- static bool has_console = false;
if ( logging_enabled ) {
if ( !has_console ) {
AllocConsole();