Add 'extern "C"' guards to version.h.
waddlesplash waddlesplash@gmail.com
Fri, 17 Mar 2017 11:43:43 -0400
1 files changed,
8 insertions(+),
0 deletions(-)
jump to
M
include/mgba/core/version.h
→
include/mgba/core/version.h
@@ -6,6 +6,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef VERSION_H #define VERSION_H +#ifdef __cplusplus +extern "C" { +#endif + extern const char* const gitCommit; extern const char* const gitCommitShort; extern const char* const gitBranch;@@ -13,5 +17,9 @@ extern const int gitRevision;
extern const char* const binaryName; extern const char* const projectName; extern const char* const projectVersion; + +#ifdef __cplusplus +} +#endif #endif