Update of /cvsroot/pure-data/externals/olafmatt/hidin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14605/olafmatt/hidin
Modified Files:
hidin.c hidin.h
Log Message:
fixed up build system and includes to get [hidin] building as part of Pd-extended on Windows
Index: hidin.c
===================================================================
RCS file: /cvsroot/pure-data/externals/olafmatt/hidin/hidin.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hidin.c 3 Jun 2006 13:31:03 -0000 1.1
--- hidin.c 13 Sep 2006 23:22:12 -0000 1.2
***************
*** 41,45 ****
void *x_qelem; /* qelem for outputing the results */
long x_device; /* the HID device number we're connecting to */
! short x_elements; /* number of elements (i.e. buttons, axes...)
/* HID specific */
--- 41,45 ----
void *x_qelem; /* qelem for outputing the results */
long x_device; /* the HID device number we're connecting to */
! short x_elements; /* number of elements (i.e. buttons, axes...)*/
/* HID specific */
***************
*** 742,746 ****
class_addmethod(hidin_class, (t_method)hidin_close, gensym("close"), 0);
class_addmethod(hidin_class, (t_method)hidin_interval, gensym("interval"), A_FLOAT, 0);
- class_sethelpsymbol(hidin_class, gensym("help-hidin.pd"));
post(hidin_version);
}
--- 742,745 ----
Index: hidin.h
===================================================================
RCS file: /cvsroot/pure-data/externals/olafmatt/hidin/hidin.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hidin.h 3 Jun 2006 13:31:03 -0000 1.1
--- hidin.h 13 Sep 2006 23:22:12 -0000 1.2
***************
*** 13,19 ****
#include <wtypes.h>
#include <setupapi.h>
#include "hidusage.h"
#include "hidsdi.h"
! #include "setupapi.h"
//
--- 13,23 ----
#include <wtypes.h>
#include <setupapi.h>
+ #ifdef _MSC_VER
#include "hidusage.h"
#include "hidsdi.h"
! #else
! #include <ddk/hidusage.h>
! #include <ddk/hidsdi.h>
! #endif
//
***************
*** 140,142 ****
t_hid_data *Data, ULONG DataLength, PHIDP_PREPARSED_DATA Ppd);
! #endif // hidin_H
\ No newline at end of file
--- 144,146 ----
t_hid_data *Data, ULONG DataLength, PHIDP_PREPARSED_DATA Ppd);
! #endif // hidin_H