From 238cf4a72fc162adbef4e48f75698ed54ed99369 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 26 Nov 2014 22:17:53 +0100 Subject: (windows) build fix --- Makefile | 6 +++--- source/snes9x.h | 19 ------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 407ba6e..cdec8ba 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ DEBUG = 0 -PERF_TEST = 1 -HAVE_GRIFFIN = 1 +PERF_TEST = 0 +HAVE_GRIFFIN = 0 LOAD_FROM_MEMORY_TEST = 0 -USE_BLARGG_APU = 0 +USE_BLARGG_APU = 1 ifeq ($(platform),) platform = unix diff --git a/source/snes9x.h b/source/snes9x.h index 4bf7409..e8bc7ba 100644 --- a/source/snes9x.h +++ b/source/snes9x.h @@ -99,30 +99,12 @@ extern int cprintf(const char* fmt, ...); -#ifdef __WIN32__ -#include "..\wsnes9x.h" -#include "..\zlib\zlib.h" -#endif - #include "port.h" #include "65c816.h" #include "messages.h" #define ROM_NAME_LEN 23 -#ifdef ZLIB -#ifndef __WIN32__ -#include "zlib.h" -#endif -#define STREAM gzFile -#define READ_STREAM(p,l,s) gzread (s,p,l) -#define WRITE_STREAM(p,l,s) gzwrite (s,p,l) -#define OPEN_STREAM(f,m) gzopen (f,m) -#define REOPEN_STREAM(f,m) gzdopen (f,m) -#define FIND_STREAM(f) gztell(f) -#define REVERT_STREAM(f,o,s) gzseek(f,o,s) -#define CLOSE_STREAM(s) gzclose (s) -#else #define STREAM FILE* #define READ_STREAM(p,l,s) fread (p,1,l,s) #define WRITE_STREAM(p,l,s) fwrite (p,1,l,s) @@ -131,7 +113,6 @@ extern int cprintf(const char* fmt, ...); #define FIND_STREAM(f) ftell(f) #define REVERT_STREAM(f,o,s) fseek(f,o,s) #define CLOSE_STREAM(s) fclose (s) -#endif /* SNES screen width and height */ -- cgit v1.2.3