diff options
Diffstat (limited to 'examples/samples.h')
-rw-r--r-- | examples/samples.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/samples.h b/examples/samples.h index b7c0197a9..391be513c 100644 --- a/examples/samples.h +++ b/examples/samples.h @@ -2,6 +2,10 @@ #define __SAMPLES_H #include <gphoto2/gphoto2-camera.h> +#ifdef __cplusplus +extern "C" { +#endif + extern int sample_autodetect (CameraList *list, GPContext *context); extern int sample_open_camera (Camera ** camera, const char *model, const char *port, GPContext *context); extern GPContext* sample_create_context(void); @@ -19,4 +23,8 @@ extern int camera_manual_focus (Camera *list, int tgt, GPContext *context); #define O_BINARY 0 #endif +#ifdef __cplusplus +}; +#endif + #endif |