mirror of https://github.com/BOINC/boinc.git
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:
parent
7211c18865
commit
7ac4351f56
|
@ -19,16 +19,17 @@
|
||||||
|
|
||||||
#include "boinc_api.h"
|
#include "boinc_api.h"
|
||||||
|
|
||||||
extern void* graphics_lib_handle;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
extern int boinc_init_graphics_lib(void (*worker)(), char* argv0);
|
extern int boinc_init_graphics_lib(void (*worker)(), char* argv0);
|
||||||
|
extern void* graphics_lib_handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int boinc_init_options_graphics_lib(
|
extern int boinc_init_options_graphics_lib(
|
||||||
BOINC_OPTIONS&, void (*worker)(), char* argv0
|
BOINC_OPTIONS&, void (*worker)(), char* argv0
|
||||||
);
|
);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
extern int boinc_init_graphics_lib(void (*worker)(), char* argv0);
|
extern int boinc_init_graphics_lib(void (*worker)(), char* argv0);
|
||||||
|
extern void* graphics_lib_handle;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue