graphics_lib_handle has to be extern C to be usable in a C program.

svn path=/trunk/boinc/; revision=4830
This commit is contained in:
Bruce Allen 2004-12-12 15:07:27 +00:00
parent 7211c18865
commit 7ac4351f56
1 changed files with 5 additions and 4 deletions

View File

@ -19,16 +19,17 @@
#include "boinc_api.h"
extern void* graphics_lib_handle;
#ifdef __cplusplus
extern "C" {
extern int boinc_init_graphics_lib(void (*worker)(), char* argv0);
extern void* graphics_lib_handle;
}
extern int boinc_init_options_graphics_lib(
BOINC_OPTIONS&, void (*worker)(), char* argv0
);
#else
extern int boinc_init_graphics_lib(void (*worker)(), char* argv0);
extern void* graphics_lib_handle;
#endif