diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-08 11:20:10 +0200 | 
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-08 11:20:10 +0200 | 
| commit | 236638cd8731712e3446ba2db8b5e952c9589a7e (patch) | |
| tree | 0aa462cb384e9d2890a796c42b7c0590ce8bb49c | |
| parent | 5ee6fc99546d41a063f44aa22931aa4bbf4ec8d1 (diff) | |
Added call convention parameter for win32.
| -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 ccf7125..2df287e 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 @@ -48,8 +50,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); @@ -58,7 +60,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,  | 
