diff options
| author | 2011-09-10 19:50:59 +0200 | |
|---|---|---|
| committer | 2012-03-19 01:39:16 +0100 | |
| commit | af7b43c4574d781a1bc8899f77df390bd9301f28 (patch) | |
| tree | 8cd08389128210c3e6d859d446e96e621b3c2e9b | |
| parent | 4e518231cf5ff4485fdaf4d52c4f51aa48e5255d (diff) | |
| download | libimobiledevice-af7b43c4574d781a1bc8899f77df390bd9301f28.tar.gz libimobiledevice-af7b43c4574d781a1bc8899f77df390bd9301f28.tar.bz2 | |
[Win32] src/notification_proxy.c: add sleep() definition
| -rw-r--r-- | src/notification_proxy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index 086dec4..6e09840 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c | |||
| @@ -28,6 +28,10 @@ | |||
| 28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
| 29 | #include "debug.h" | 29 | #include "debug.h" |
| 30 | 30 | ||
| 31 | #ifdef WIN32 | ||
| 32 | #define sleep(x) Sleep(x*1000) | ||
| 33 | #endif | ||
| 34 | |||
| 31 | struct np_thread { | 35 | struct np_thread { |
| 32 | np_client_t client; | 36 | np_client_t client; |
| 33 | np_notify_cb_t cbfunc; | 37 | np_notify_cb_t cbfunc; |
