diff options
author | Martin Szulecki | 2013-03-18 17:50:02 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-03-18 17:50:02 +0100 |
commit | 1b26aa5876df307b051012ac56fe0bb7530e11b7 (patch) | |
tree | e3e6bdbd9966137b3a9033393ff5978e1323f406 | |
parent | 1641d9a8e82a0c5f1ad6968916fce2e63187c400 (diff) | |
download | ideviceinstaller-1b26aa5876df307b051012ac56fe0bb7530e11b7.tar.gz ideviceinstaller-1b26aa5876df307b051012ac56fe0bb7530e11b7.tar.bz2 |
Fix compiling of correct code depending on version of libimobiledevice
-rw-r--r-- | src/ideviceinstaller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 54bd318..7682536 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -68,7 +68,7 @@ int op_completed = 0; int err_occured = 0; int notified = 0; -#ifdef HAVE_LIBIMOBILEDEVICE_1_0 +#ifdef HAVE_LIBIMOBILEDEVICE_1_1 static void notifier(const char *notification, void *unused) #else static void notifier(const char *notification) @@ -419,7 +419,7 @@ int main(int argc, char **argv) goto leave_cleanup; } -#ifdef HAVE_LIBIMOBILEDEVICE_1_0 +#ifdef HAVE_LIBIMOBILEDEVICE_1_1 np_set_notify_callback(np, notifier, NULL); #else np_set_notify_callback(np, notifier); |