Skip to content

Commit 599dc81

Browse files
authored
Merge pull request #8 from maximegmd/patch-1
C mangling
2 parents 450b40c + e8a2abd commit 599dc81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/InputLoader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313
namespace InputLoader {
1414

15-
DLLDIR void Add(RED4ext::PluginHandle aHandle, const wchar_t * str);
15+
extern "C" DLLDIR void Add(RED4ext::PluginHandle aHandle, const wchar_t * str);
1616

17-
}
17+
}

src/Main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pugi::xml_document inputUserMappingsOriginal;
5252

5353
static std::vector<std::filesystem::path> document_paths;
5454

55-
void Add(RED4ext::PluginHandle aHandle, const wchar_t * str) {
55+
RED4EXT_C_EXPORT void Add(RED4ext::PluginHandle aHandle, const wchar_t * str) {
5656
std::filesystem::path path(str);
5757
if (path.is_relative()) {
5858
char dllFilePath[513] = {0};

0 commit comments

Comments
 (0)