diff --git a/polymer/eduke32/build/src/baselayer.c b/polymer/eduke32/build/src/baselayer.c index cd25e15e4..7678b9157 100644 --- a/polymer/eduke32/build/src/baselayer.c +++ b/polymer/eduke32/build/src/baselayer.c @@ -384,10 +384,14 @@ int32_t baselayer_init(void) #endif #if !defined(NOASM) && !defined(GEKKO) && !defined(__ANDROID__) +#ifdef __cplusplus extern "C" { +#endif extern int32_t dep_begin, dep_end; +#ifdef __cplusplus }; #endif +#endif void makeasmwriteable(void) {