Skip to content

Commit

Permalink
Fixed the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbbert committed Mar 2, 2016
1 parent 361d586 commit 87751b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion scripts/src/osd/newui.lua
Expand Up @@ -182,7 +182,6 @@ project ("ocore_" .. _OPTIONS["osd"])
MAME_DIR .. "src/osd/windows/main.cpp",
MAME_DIR .. "src/osd/windows/windir.cpp",
MAME_DIR .. "src/osd/windows/winfile.cpp",
MAME_DIR .. "src/osd/modules/sync/sync_windows.cpp",
MAME_DIR .. "src/osd/windows/winutf8.cpp",
MAME_DIR .. "src/osd/windows/winutil.cpp",
MAME_DIR .. "src/osd/windows/winclip.cpp",
Expand Down
1 change: 0 additions & 1 deletion scripts/src/osd/winui.lua
Expand Up @@ -231,7 +231,6 @@ project ("ocore_" .. _OPTIONS["osd"])
MAME_DIR .. "src/osd/strconv.cpp",
MAME_DIR .. "src/osd/windows/windir.cpp",
MAME_DIR .. "src/osd/windows/winfile.cpp",
MAME_DIR .. "src/osd/modules/sync/sync_windows.cpp",
MAME_DIR .. "src/osd/windows/winutf8.cpp",
MAME_DIR .. "src/osd/windows/winutil.cpp",
MAME_DIR .. "src/osd/windows/winclip.cpp",
Expand Down
10 changes: 10 additions & 0 deletions src/lib/util/corestr.cpp
Expand Up @@ -198,6 +198,16 @@ char *core_i64_format(UINT64 value, UINT8 mindigits, bool is_octal)

#include <algorithm>

int strvprintf(std::string &str, const char *format, va_list args)
{
char tempbuf[4096];
int result = vsprintf(tempbuf, format, args);

// set the result
str.assign(tempbuf);
return result;
}

int strcatvprintf(std::string &str, const char *format, va_list args)
{
char tempbuf[4096];
Expand Down
1 change: 1 addition & 0 deletions src/lib/util/corestr.h
Expand Up @@ -65,6 +65,7 @@ int core_strwildcmp(const char *sp1, const char *sp2);
char *core_i64_format(UINT64 value, UINT8 mindigits, bool is_octal);
char *core_i64_hex_format(UINT64 value, UINT8 mindigits);

int strvprintf(std::string &str, const char *format, va_list args);
int strcatvprintf(std::string &str, const char *format, va_list args);

void strdelchr(std::string& str, char chr);
Expand Down

0 comments on commit 87751b4

Please sign in to comment.