]> git.mxchange.org Git - simgear.git/blobdiff - simgear/debug/logstream.hxx
easyxml.cxx: add missing endXML visitor call
[simgear.git] / simgear / debug / logstream.hxx
index f81cc0b44abfe95ac4411e5b14d7bb604936d44f..3bc49a767522ad3435acf5555c8d6d6475fd1398 100644 (file)
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Library General Public License for more details.
 //
-// You should have received a copy of the GNU Library General Public
-// License along with this library; if not, write to the
-// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-// Boston, MA  02111-1307, USA.
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -140,6 +139,10 @@ public:
      */
     void set_sb( streambuf* sb );
 
+#ifdef _MSC_VER
+    static void has_no_console() { has_console = false; }
+#endif
+
 protected:
 
     /** sync/flush */
@@ -155,6 +158,9 @@ private:
     static streambuf* sbuf;
 
     static bool logging_enabled;
+#ifdef _MSC_VER
+    static bool has_console;
+#endif
     static sgDebugClass logClass;
     static sgDebugPriority logPriority;
 
@@ -185,7 +191,6 @@ inline logbuf::int_type
 logbuf::overflow( int c )
 {
 #ifdef _MSC_VER
-    static bool has_console = false;
     if ( logging_enabled ) {
         if ( !has_console ) {
             AllocConsole();