From bd55372ebe8cecc353934002e3770b13dc15a1d7 Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Wed, 5 Mar 2008 22:02:48 +0000 Subject: [PATCH] Matched functions linkage in api/graphics2.h to those in api/graphics_api.h svn path=/trunk/boinc/; revision=14849 --- api/graphics2.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/graphics2.h b/api/graphics2.h index df6efa09d6..39dea79080 100644 --- a/api/graphics2.h +++ b/api/graphics2.h @@ -1,6 +1,12 @@ #ifndef _GRAPHICS2_H_ #define _GRAPHICS2_H_ +#ifdef __cplusplus +extern "C" { +#endif + + + // Functions that must be supplied by the app // extern void app_graphics_render(int xs, int ys, double time_of_day); @@ -18,6 +24,10 @@ extern void* boinc_graphics_make_shmem(char*, int); extern void* boinc_graphics_get_shmem(char*); extern void boinc_set_windows_icon(const char* icon16,const char* icon48); +#ifdef __cplusplus +} +#endif + // Implementation stuff // extern double boinc_max_fps; @@ -25,4 +35,5 @@ extern double boinc_max_gfx_cpu_frac; extern void get_window_title(char* buf, int len); extern bool throttled_app_render(int, int, double); + #endif