From 27101979fab4f2d2ba8623d587053925436f99d6 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 10 Nov 2015 00:39:46 -0800 Subject: [PATCH] Add extern "C" to ntcore_c implementation. This will catch any future parameter type mismatches to the header file. --- src/ntcore_c.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ntcore_c.cpp b/src/ntcore_c.cpp index 0a2c28f4b5..e6e64bec3e 100644 --- a/src/ntcore_c.cpp +++ b/src/ntcore_c.cpp @@ -110,6 +110,8 @@ static RpcDefinition ConvertFromC(const NT_RpcDefinition& in) { return out; } +extern "C" { + /* * Table Functions */ @@ -748,3 +750,5 @@ NT_String *NT_GetEntryStringArray(const char *name, size_t name_len, *arr_size = vArr.size(); return arr; } + +} // extern "C"