From 9c068965d51a8dcd075c9e66becdc6838c944cb4 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 12 Dec 2020 13:06:57 -0800
Subject: [PATCH] When #included in jsdoor.c (!) this is compiled as C, not C++

---
 src/sbbs3/ver.cpp | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/ver.cpp b/src/sbbs3/ver.cpp
index ac19689085..a5e7e6092a 100644
--- a/src/sbbs3/ver.cpp
+++ b/src/sbbs3/ver.cpp
@@ -25,9 +25,17 @@
 #include "git_branch.h"
 #include "ver.h"
 
-extern "C" const char* git_hash = GIT_HASH;
-extern "C" const char* git_branch = GIT_BRANCH;
-extern "C" const char* beta_version = " "; /* Space if non-beta, " beta" otherwise */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+const char* git_hash = GIT_HASH;
+const char* git_branch = GIT_BRANCH;
+const char* beta_version = " "; /* Space if non-beta, " beta" otherwise */
+
+#ifdef __cplusplus
+}
+#endif
 
 #if defined(_WINSOCKAPI_)
 	extern WSADATA WSAData;
-- 
GitLab