diff --git a/lib/diagnostics.h b/lib/diagnostics.h index 361b87bb8d..8cc69c9442 100644 --- a/lib/diagnostics.h +++ b/lib/diagnostics.h @@ -34,7 +34,9 @@ #include #endif +#ifdef __cplusplus extern bool main_exited; +#endif // some of the Android stuff below causes seg faults on some devices. // Disable by default.