Update of /cvsroot/pure-data/externals/io/hidio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30747
Modified Files: hidio.h Log Message: minor fix for MinGW compilation
Index: hidio.h =================================================================== RCS file: /cvsroot/pure-data/externals/io/hidio/hidio.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** hidio.h 3 Dec 2006 18:17:36 -0000 1.5 --- hidio.h 4 Dec 2006 05:23:35 -0000 1.6 *************** *** 2,16 **** #define _HIDIO_H
! #include <stdio.h> #ifdef _WINDOWS ! #include "pthread.h" /* needs pthread library */ ! #define LOG_DEBUG 7 ! #define LOG_INFO 6 ! #define LOG_WARNING 4 ! #define vsnprintf _vsnprintf ! #pragma warning (disable: 4305 4244 4761) ! #else #include <sys/syslog.h> ! #include <pthread.h> #endif
--- 2,19 ---- #define _HIDIO_H
! #include <stdio.h> #ifdef _WINDOWS ! #include "pthread.h" /* needs pthread library */ ! #define LOG_DEBUG 7 ! #define LOG_INFO 6 ! #define LOG_WARNING 4 ! #define vsnprintf _vsnprintf ! #else #include <sys/syslog.h> ! #include <pthread.h> ! #endif ! ! #ifdef _MSC_VER /* this only applies to Microsoft compilers */ ! #pragma warning (disable: 4305 4244 4761) #endif
*************** *** 129,139 **** #endif /* __linux__ */ #ifdef _WIN32 ! /* this should be pointers to the UsagePage and Usage */ #endif /* _WIN32 */ #ifdef __APPLE__ void *pHIDElement; // pRecElement on Mac OS X; ... on Windows #endif /* __APPLE__ */ ! t_symbol *type; // Linux "type"; HID "usagePage" ! t_symbol *name; // Linux "code"; HID "usage" unsigned char polled; // is it polled or queued? (maybe only on Mac OS X?) unsigned char relative; // relative data gets output everytime --- 132,142 ---- #endif /* __linux__ */ #ifdef _WIN32 ! /* this should store the UsagePage and Usage */ #endif /* _WIN32 */ #ifdef __APPLE__ void *pHIDElement; // pRecElement on Mac OS X; ... on Windows #endif /* __APPLE__ */ ! t_symbol *type; // Linux "type"; HID "usagePage", but using the hidio scheme ! t_symbol *name; // Linux "code"; HID "usage", but using the hidio scheme unsigned char polled; // is it polled or queued? (maybe only on Mac OS X?) unsigned char relative; // relative data gets output everytime