aboutsummaryrefslogtreecommitdiff
path: root/hidio_darwin.c
diff options
context:
space:
mode:
authorOlaf Matthes <olafmatt@users.sourceforge.net>2006-12-01 15:07:46 +0000
committerOlaf Matthes <olafmatt@users.sourceforge.net>2006-12-01 15:07:46 +0000
commitcb484de796b5e6b9ecfa36111390e9b2086bdd13 (patch)
treefb1e15f2a0664e8ec999b78c81c95a806ed89681 /hidio_darwin.c
parent5a32858b29f80e804ca2744661ecf3395ddd316d (diff)
initial Max port for Max 4.5 on OS
svn path=/trunk/externals/io/hidio/; revision=6558
Diffstat (limited to 'hidio_darwin.c')
-rw-r--r--hidio_darwin.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/hidio_darwin.c b/hidio_darwin.c
index 35e1970..29a62f1 100644
--- a/hidio_darwin.c
+++ b/hidio_darwin.c
@@ -408,7 +408,7 @@ static void hidio_build_element_list(t_hidio *x)
HIDGetUsageName(pCurrentHIDElement->usagePage,
pCurrentHIDElement->usage, usage_name);
- new_element = getbytes(sizeof(t_hid_element));
+ new_element = (t_hid_element *)getbytes(sizeof(t_hid_element));
new_element->pHIDElement = (void *) pCurrentHIDElement;
get_usage_symbols(pCurrentHIDElement, new_element);
new_element->relative = pCurrentHIDElement->relative;
@@ -562,7 +562,7 @@ void hidio_platform_specific_info(t_hidio *x)
char product_id_string[7];
char device_type_buffer[256];
t_symbol *output_symbol;
- t_atom *output_atom = getbytes(sizeof(t_atom));
+ t_atom *output_atom = (t_atom *)getbytes(sizeof(t_atom));
if(x->x_device_number > -1)
{
@@ -582,7 +582,11 @@ void hidio_platform_specific_info(t_hidio *x)
if(pCurrentHIDDevice->serial != NULL)
{
output_symbol = gensym(pCurrentHIDDevice->serial);
+#ifdef PD
if( output_symbol != &s_ )
+#else
+ if( output_symbol != _sym_nothing )
+#endif
{ /* the serial is rarely used on USB devices, so test for it */
SETSYMBOL(output_atom, output_symbol);
outlet_anything( x->x_status_outlet, gensym("serial"),