Fixed some portability issues (tested on a Pi)
This commit is contained in:
parent
3cf1e68b73
commit
cad4518d30
3 changed files with 5 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -8,7 +8,6 @@ endif
|
||||||
|
|
||||||
ifeq ($(JAPANESE), 1)
|
ifeq ($(JAPANESE), 1)
|
||||||
CXXFLAGS += -DJAPANESE
|
CXXFLAGS += -DJAPANESE
|
||||||
LIBS += -liconv
|
|
||||||
ifeq ($(RELEASE), 1)
|
ifeq ($(RELEASE), 1)
|
||||||
FILENAME_DEF = releasejp
|
FILENAME_DEF = releasejp
|
||||||
else
|
else
|
||||||
|
@ -26,6 +25,9 @@ ifeq ($(WINDOWS), 1)
|
||||||
ifeq ($(CONSOLE), 1)
|
ifeq ($(CONSOLE), 1)
|
||||||
CXXFLAGS += -mconsole
|
CXXFLAGS += -mconsole
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(JAPANESE), 1)
|
||||||
|
LIBS += -liconv
|
||||||
|
endif
|
||||||
CXXFLAGS += -DWINDOWS
|
CXXFLAGS += -DWINDOWS
|
||||||
LIBS += -lkernel32
|
LIBS += -lkernel32
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -16,7 +16,7 @@ bool GetCompileVersion(int *v1, int *v2, int *v3, int *v4)
|
||||||
bool CheckFileExists(const char *name)
|
bool CheckFileExists(const char *name)
|
||||||
{
|
{
|
||||||
char path[PATH_LENGTH];
|
char path[PATH_LENGTH];
|
||||||
sprintf(path, "%s\\%s", gModulePath, name);
|
sprintf(path, "%s/%s", gModulePath, name);
|
||||||
|
|
||||||
FILE *file = fopen(path, "rb");
|
FILE *file = fopen(path, "rb");
|
||||||
if (file)
|
if (file)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
static char gWaveModelTable[6][256];
|
static signed char gWaveModelTable[6][256];
|
||||||
|
|
||||||
void MakeWaveTables(void)
|
void MakeWaveTables(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue