From 9ecd26b3ce6465d77ec7890c1629cb9f222753ce Mon Sep 17 00:00:00 2001 From: skeezix Date: Tue, 8 Feb 2011 09:44:17 -0500 Subject: [PATCH] Added missing 'extern "C"' wrappers two pnd_io_* headers. Thanks crow! --- include/pnd_io_evdev.h | 8 ++++++++ include/pnd_io_ioctl.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/pnd_io_evdev.h b/include/pnd_io_evdev.h index 450733c..27af4bb 100644 --- a/include/pnd_io_evdev.h +++ b/include/pnd_io_evdev.h @@ -2,6 +2,10 @@ #ifndef h_pnd_io_evdev_h #define h_pnd_io_evdev_h +#ifdef __cplusplus +extern "C" { +#endif + // some handy routines for open/close/monitor of the evdev controller devices .. // ie: so you can watch the analogs and d-pads pretty easily, for when you don't // want to rely on SDL or whatever @@ -66,4 +70,8 @@ unsigned int pnd_evdev_dpad_state ( pnd_evdev_e device ); // returns bitmask of // return -1 when device not opened int pnd_evdev_nub_state ( pnd_evdev_e nubdevice, pnd_nubstate_t *r_nubstate ); +#ifdef __cplusplus +} /* "C" */ +#endif + #endif diff --git a/include/pnd_io_ioctl.h b/include/pnd_io_ioctl.h index 5ed7b1d..c7394b1 100644 --- a/include/pnd_io_ioctl.h +++ b/include/pnd_io_ioctl.h @@ -1,9 +1,17 @@ #ifndef h_pnd_io_ioctl_h #define h_pnd_io_ioctl_h +#ifdef __cplusplus +extern "C" { +#endif + // this is a simple 'is key pressed?' type routine, using standard ioctl; if you don't want to // monitor the events and just ewant to see whats up, this can be handy. // returns -1 on error, 0 for 'not down', and >0 for 'is down' int pnd_is_key_down ( int fd, int key ); +#ifdef __cplusplus +} /* "C" */ +#endif + #endif -- 2.39.2