From d7b7f5ac78cf9da70f1ff668cd09fcf2e7dfca72 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 25 Apr 2013 16:09:19 +1000 Subject: [PATCH] match the rest of the code and have OutputDebugString under _DEBUG --- codemp/icarus/Instance.cpp | 2 +- codemp/qcommon/common.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/codemp/icarus/Instance.cpp b/codemp/icarus/Instance.cpp index 0f7a6e3..0ce707b 100644 --- a/codemp/icarus/Instance.cpp +++ b/codemp/icarus/Instance.cpp @@ -57,7 +57,7 @@ ICARUS_Instance *ICARUS_Instance::Create( interface_export_t *ie ) { ICARUS_Instance *instance = new ICARUS_Instance; instance->m_interface = ie; -#ifndef __linux__ +#ifdef _DEBUG OutputDebugString( "ICARUS Instance successfully created\n" ); #endif return instance; diff --git a/codemp/qcommon/common.cpp b/codemp/qcommon/common.cpp index 92777ae..23fc2ab 100644 --- a/codemp/qcommon/common.cpp +++ b/codemp/qcommon/common.cpp @@ -231,10 +231,8 @@ void QDECL Com_OPrintf( const char *fmt, ...) va_start (argptr,fmt); vsprintf (msg,fmt,argptr); va_end (argptr); -#ifndef __linux__ +#ifdef _DEBUG OutputDebugString(msg); -#else - printf(msg); #endif }