Turns out I broke the Windows build a while ago, how amusing.

This commit is contained in:
Alcaro
2018-04-21 10:08:50 +02:00
parent 9d504b2852
commit 48296c681d
2 changed files with 4 additions and 4 deletions

View File

@@ -96,4 +96,4 @@ ifeq ($(TARGET),gtk)
endif
$(FNAME_$(TARGET)): $(SOURCES) $(XFILES)
$(CXX) $^ -std=c++98 $(CFLAGS_G) $(MOREFLAGS) $(OPTFLAGS) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LFLAGS) $(XFILES) -o$@
$(CXX) $^ -std=c++98 $(CFLAGS_G) $(MOREFLAGS) $(OPTFLAGS) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LFLAGS) -o$@

View File

@@ -388,12 +388,12 @@ LPWSTR config::flatten()
LPWSTR ret = (LPWSTR)malloc((len+1)*sizeof(WCHAR));
LPWSTR at = ret;
at += wsprintf(at, "%s", header);
at += wsprintf(at, TEXT("%s"), header);
for (size_t i=0;i<this->numentries;i++)
{
if (this->values[i]!=NULL)
{
at += wsprintf(at, "%s=%s\n", this->names[i], this->values[i]);
at += wsprintf(at, TEXT("%s=%s\n"), this->names[i], this->values[i]);
}
}
@@ -429,7 +429,7 @@ config cfg;
static LPWSTR EmuGetKey(LPCWSTR filename)
{
static WCHAR ret[64];
wsprintf(ret, "emu%s", GetExtension(filename));
wsprintf(ret, TEXT("emu%s"), GetExtension(filename));
return ret;
}