diff options
author | fourdan | 2006-07-04 14:35:08 +0000 |
---|---|---|
committer | fourdan | 2006-07-04 14:35:08 +0000 |
commit | 67df43b17ea79da1cf761dce8a449e89e9dc3269 (patch) | |
tree | e0d89e7ffdc23374afe4391dbf2fb226c5682ecd /examples | |
parent | 25955b215784cb41fa08245ffbd267e85e89d93b (diff) | |
download | ivy-c-67df43b17ea79da1cf761dce8a449e89e9dc3269.zip ivy-c-67df43b17ea79da1cf761dce8a449e89e9dc3269.tar.gz ivy-c-67df43b17ea79da1cf761dce8a449e89e9dc3269.tar.bz2 ivy-c-67df43b17ea79da1cf761dce8a449e89e9dc3269.tar.xz |
Passage en version 3.9, mise a jour paquets Debian.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/testUnbind.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/testUnbind.c b/examples/testUnbind.c index e302a0f..2cc7fdd 100644 --- a/examples/testUnbind.c +++ b/examples/testUnbind.c @@ -15,6 +15,7 @@ #include <string.h> #include <Ivy/ivyloop.h> #include <Ivy/ivy.h> +#include <Ivy/version.h> #define REGEXP "^ub" void Callback (IvyClientPtr app, void *user_data, int argc, char *argv[]) { @@ -30,6 +31,10 @@ int main(int argc, char *argv[]) { ptr=IvyBindMsg(Callback,&ptr,REGEXP); printf("bound to %s\n",REGEXP); IvyStart(NULL); - IvyMainLoop(0); +#if (IVYMAJOR_VERSION == 3) && (IVYMINOR_VERSION < 9) + IvyMainLoop(NULL, NULL); +#else + IvyMainLoop(); +#endif return 0; } |