aboutsummaryrefslogtreecommitdiff
path: root/hidio.c
diff options
context:
space:
mode:
authorOlaf Matthes <olafmatt@users.sourceforge.net>2006-12-21 18:40:59 +0000
committerOlaf Matthes <olafmatt@users.sourceforge.net>2006-12-21 18:40:59 +0000
commit2a156b8e765ee64fc5b01f78fa6f6974593053c6 (patch)
treef40c9d7ca605817dfdc3bea280d83858fb191d5d /hidio.c
parent1bcbca14315920e88bb15ba0c73860443dd601ef (diff)
fixed the bug that made it crash in Max/MSP on OS X
svn path=/trunk/externals/io/hidio/; revision=7044
Diffstat (limited to 'hidio.c')
-rw-r--r--hidio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hidio.c b/hidio.c
index f732d43..0ff2cce 100644
--- a/hidio.c
+++ b/hidio.c
@@ -429,6 +429,7 @@ static void hidio_open(t_hidio *x, t_symbol *s, int argc, t_atom *argv)
t_int hidio_child_read(t_hidio *x)
{
// debug_print(LOG_DEBUG,"hidio_child_read");
+ t_hid_element *current_element;
unsigned int i;
#ifdef PD
double right_now = clock_getlogicaltime();
@@ -436,7 +437,6 @@ t_int hidio_child_read(t_hidio *x)
double right_now;
clock_getftime(&right_now);
#endif /* PD */
- t_hid_element *current_element;
if(right_now > last_execute_time[x->x_device_number])
{
@@ -940,6 +940,7 @@ int main()
ps_total = gensym("total");
ps_range = gensym("range");
+ generate_type_symbols();
generate_event_symbols();
return 0;