diff options
Diffstat (limited to 'libusbhp')
| -rw-r--r-- | libusbhp/libusbhp.h | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/libusbhp/libusbhp.h b/libusbhp/libusbhp.h index 7622576..646f2ec 100644 --- a/libusbhp/libusbhp.h +++ b/libusbhp/libusbhp.h @@ -28,6 +28,7 @@  #define __LIBUSBHP_H__  #ifdef WIN32 +#define CALL __stdcall  #ifdef BUILD_DLL  /* DLL export */  #define EXPORT __declspec(dllexport) @@ -37,6 +38,7 @@  #endif  #include <Winsock2.h>  #else +#define CALL  #define EXPORT  #include <sys/time.h>  #endif @@ -53,8 +55,8 @@ struct libusbhp_device_t {  	unsigned short idProduct;  }; -typedef void (*libusbhp_hotplug_cb_fn)(struct libusbhp_device_t *device, -                                     void *user_data); +typedef void (CALL *libusbhp_hotplug_cb_fn)(struct libusbhp_device_t *device, +                                            void *user_data);  EXPORT   int libusbhp_init(struct libusbhp_t **handle); @@ -63,7 +65,8 @@ EXPORT   void libusbhp_exit(struct libusbhp_t *handle);  EXPORT - int libusbhp_handle_events_timeout(struct libusbhp_t *handle, struct timeval *tv); + int libusbhp_handle_events_timeout(struct libusbhp_t *handle, +                                    struct timeval *tv);  EXPORT   void libusbhp_register_hotplug_listeners(struct libusbhp_t *handle,  | 
