guarding printf calls as MinGW (gcc 4.5) insists

This commit is contained in:
Mike Erwin 2010-07-03 03:53:06 +00:00
parent d5cdfb18f6
commit 905fcc7b74
2 changed files with 6 additions and 2 deletions

@ -377,7 +377,9 @@ int GHOST_DropTargetWin32::WideCharToANSI(LPCWSTR in, char * &out)
out = (char*)::malloc(size);
if (!out)
{
#ifdef GHOST_DEBUG
::printf("\nmalloc failed!!!");
#endif
return 0;
}

@ -659,7 +659,9 @@ GHOST_TSuccess GHOST_WindowWin32::installDrawingContext(GHOST_TDrawingContextTyp
success = ::wglMakeCurrent(m_hDC, m_hGlRc) == TRUE ? GHOST_kSuccess : GHOST_kFailure;
}
else {
#ifdef GHOST_DEBUG
printf("Failed to get a context....\n");
#endif
success = GHOST_kFailure;
}
}
@ -694,7 +696,9 @@ GHOST_TSuccess GHOST_WindowWin32::installDrawingContext(GHOST_TDrawingContextTyp
success = ::wglMakeCurrent(m_hDC, m_hGlRc) == TRUE ? GHOST_kSuccess : GHOST_kFailure;
}
else {
#ifdef GHOST_DEBUG
printf("Failed to get a context....\n");
#endif
success = GHOST_kFailure;
}
@ -1160,5 +1164,3 @@ static int EnumPixelFormats(HDC hdc) {
}
return iPixelFormat;
}