diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-24 15:59:24 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-24 15:59:24 +0000 |
commit | c0e5d9c9f848b68eeecfbd09d08be5585254f690 (patch) | |
tree | 3d46aac14ff2e320a330cae958c0f62f3424d884 /navit/callback.c | |
parent | 0e648db576e7d4f3b3747bab9fccf595213100e2 (diff) | |
download | navit-c0e5d9c9f848b68eeecfbd09d08be5585254f690.tar.gz |
Fix:Core:MSVC fixes|Thanks chollya
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3973 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/callback.c')
-rw-r--r-- | navit/callback.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/navit/callback.c b/navit/callback.c index fa2087b95..aa38f59dd 100644 --- a/navit/callback.c +++ b/navit/callback.c @@ -63,7 +63,7 @@ struct callback * callback_new_attr_args(void (*func)(void), enum attr_type type, int count, ...) { int i; - void *p[count]; + void **p=g_alloca(sizeof(void*)*count); va_list ap; va_start(ap, count); for (i = 0 ; i < count ; i++) @@ -82,7 +82,7 @@ struct callback * callback_new_args(void (*func)(void), int count, ...) { int i; - void *p[count]; + void **p=g_alloca(sizeof(void*)*count); va_list ap; va_start(ap, count); for (i = 0 ; i < count ; i++) @@ -193,7 +193,7 @@ void callback_call_args(struct callback *cb, int count, ...) { int i; - void *p[count]; + void **p=g_alloca(sizeof(void*)*count); va_list ap; va_start(ap, count); for (i = 0 ; i < count ; i++) @@ -226,7 +226,7 @@ void callback_list_call_attr_args(struct callback_list *cbl, enum attr_type type, int count, ...) { int i; - void *p[count]; + void **p=g_alloca(sizeof(void*)*count); va_list ap; va_start(ap, count); for (i = 0 ; i < count ; i++) @@ -245,7 +245,7 @@ void callback_list_call_args(struct callback_list *cbl, int count, ...) { int i; - void *p[count]; + void **p=g_alloca(sizeof(void*)*count); va_list ap; va_start(ap, count); for (i = 0 ; i < count ; i++) |