diff --git a/src/sbbs3/ver.cpp b/src/sbbs3/ver.cpp index ac196890851021b69e83f7836692e70310b1dc15..a5e7e6092a1026e2d21ba2ab87f06da23b061873 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;