Skip to content

Commit b1c327c

Browse files
committed
Fix string_printf linking
1 parent 9684e31 commit b1c327c

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "mm-decomp"]
55
path = mm-decomp
66
url = https://github.com/zeldaret/mm
7+
[submodule "lib/rapidjson"]
8+
path = lib/rapidjson
9+
url = https://github.com/Tencent/rapidjson

lib/rapidjson

Submodule rapidjson added at 24b5e7a

src/lib/string_printf.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "string_printf.hpp"
22
#include "stdarg.h"
3-
#include "PR/xstdio.h"
3+
extern "C" {
4+
#include "PR/xstdio.h"
5+
}
46

57
void* snprintf_pfn(void* dst, const char* fmt, size_t size) {
68
std::string* str = reinterpret_cast<std::string*>(dst);

0 commit comments

Comments
 (0)