glide2x, sst1: windows MSVC 6 build fixes in init

This commit is contained in:
sezero
2018-08-18 22:16:37 +03:00
parent 5672bdf2be
commit d917bb66ab
3 changed files with 9 additions and 3 deletions

View File

@@ -922,7 +922,7 @@ FxBool sst1InitSetGrxClkINI(FxU32 *sstbase, sst1ClkTimingStruct
setMemClk = iniDac->setMemClk;
while(setMemClk) {
#ifdef DIRECTX
if(setMemClk->frequency == FTOL(sstGrxClk->freq) ) {
if(setMemClk->frequency == (FxU32) FTOL(sstGrxClk->freq) ) {
#else
if(setMemClk->frequency == (FxU32) sstGrxClk->freq) {
#endif

View File

@@ -256,6 +256,7 @@ gdbg_set_file(const char *name)
else {
outf = fopen(name,"w"); // open up a new one
if (outf) gdbg_msgfile = outf;
return outf != NULL;
}
return (outf != NULL);
}
return FXTRUE;
}

View File

@@ -34,6 +34,11 @@
#include <sst1vid.h>
#include <sst1init.h>
#if __WIN32__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif /* __WIN32__ */
static int sst1InitFgets(char *, FILE *);
static int sst1InitFgetc(FILE *);
static int sst1InitParseFieldDac(char *);