X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fdebug%2Flogstream.hxx;h=d3649a4a21b3cf5912dd20778d9daf39abb37b5b;hb=a668e47fa180ca6efb592a9406dcbe9909d69adf;hp=c2a5edc5b6d7110b5fc68462ae75f602c8384e78;hpb=795c9876af39bf6ccede3ab535abffe55cb6a667;p=simgear.git diff --git a/simgear/debug/logstream.hxx b/simgear/debug/logstream.hxx index c2a5edc5..d3649a4a 100644 --- a/simgear/debug/logstream.hxx +++ b/simgear/debug/logstream.hxx @@ -27,7 +27,7 @@ #include -#ifdef _MSC_VER +#ifdef _WIN32 # include #endif @@ -123,7 +123,7 @@ public: */ void set_sb( std::streambuf* sb ); -#ifdef _MSC_VER +#ifdef _WIN32 static void has_no_console() { has_console = false; } #endif @@ -142,7 +142,7 @@ private: static std::streambuf* sbuf; static bool logging_enabled; -#ifdef _MSC_VER +#ifdef _WIN32 static bool has_console; #endif static sgDebugClass logClass; @@ -176,7 +176,7 @@ logbuf::would_log( sgDebugClass c, sgDebugPriority p ) const inline logbuf::int_type logbuf::overflow( int c ) { -#ifdef _MSC_VER +#ifdef _WIN32 if ( logging_enabled ) { if ( !has_console ) { AllocConsole();