From deee5e43175999559f8c5758addcd977776191e3 Mon Sep 17 00:00:00 2001 From: Reinhard Prix Date: Thu, 4 Jan 2007 11:28:41 +0000 Subject: [PATCH] - allow poor ANSI-C projects [such as E@H] to use BOINC: restore 'extern "C"' protection - move extern bool boinc_graphics_possible(); into C++ API section [from Bernd's patch] svn path=/trunk/boinc/; revision=11763 --- api/graphics_api.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/api/graphics_api.h b/api/graphics_api.h index 5814b50929..b00df8dc8b 100755 --- a/api/graphics_api.h +++ b/api/graphics_api.h @@ -20,9 +20,12 @@ #ifndef BOINC_GRAPHICS_API_H #define BOINC_GRAPHICS_API_H +#ifdef __cplusplus +extern "C" { +#endif + typedef void (*WORKER_FUNC_PTR)(); -extern bool boinc_graphics_possible(); extern int boinc_init_graphics(WORKER_FUNC_PTR); // Functions that must be supplied by the app @@ -41,11 +44,13 @@ extern void boinc_app_key_press(int, int); extern void boinc_app_key_release(int, int); // C++ API follows here +#ifdef __cplusplus +} // end extern "C" -#if defined __cplusplus #include "boinc_api.h" extern int boinc_init_options_graphics(BOINC_OPTIONS&, WORKER_FUNC_PTR); +extern bool boinc_graphics_possible(); // Implementation stuff //