Another warnings fix patch by riccardom, this is also

protecting the non-portable DebugDumpTexture.
This commit is contained in:
yabause 2008-10-19 15:37:16 +00:00
parent d5d434133c
commit b22e828e41
1 changed files with 6 additions and 4 deletions

View File

@ -53,13 +53,15 @@ static void ENDGL() {
#include <windows.h> #include <windows.h>
#include <GL/gl.h> #include <GL/gl.h>
#include <GL/glext.h> #include <GL/glext.h>
#elif DESMUME_COCOA #else
#ifdef DESMUME_COCOA
#include <OpenGL/gl.h> #include <OpenGL/gl.h>
#include <OpenGL/glext.h> #include <OpenGL/glext.h>
#else #else
#include <GL/gl.h> #include <GL/gl.h>
#include <GL/glext.h> #include <GL/glext.h>
#endif #endif
#endif
#include "types.h" #include "types.h"
#include "debug.h" #include "debug.h"
@ -88,7 +90,7 @@ float clearAlpha;
//raw ds format poly attributes, installed from the display list //raw ds format poly attributes, installed from the display list
static u32 polyAttr=0,textureFormat=0, texturePalette=0; static u32 textureFormat=0, texturePalette=0;
//derived values extracted from polyattr etc //derived values extracted from polyattr etc
static bool wireframe=false, alpha31=false; static bool wireframe=false, alpha31=false;
@ -440,7 +442,7 @@ void* memcpy_fast(void* dest, const void* src, size_t count)
#endif #endif
#ifdef DEBUG_DUMP_TEXTURE #ifdef DEBUG_DUMP_TEXTURE && WIN32
static void DebugDumpTexture(int which) static void DebugDumpTexture(int which)
{ {
char fname[100]; char fname[100];