forked from bartvdbraak/blender
guarding printf calls as MinGW (gcc 4.5) insists
This commit is contained in:
parent
d5cdfb18f6
commit
905fcc7b74
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user