diff options
author | Olaf Matthes <olafmatt@users.sourceforge.net> | 2006-12-03 18:17:36 +0000 |
---|---|---|
committer | Olaf Matthes <olafmatt@users.sourceforge.net> | 2006-12-03 18:17:36 +0000 |
commit | 90c9041976723a669b02deffa75853a85c0343cb (patch) | |
tree | 01924d564bd6c1ef06f7aa3be101b11720581c79 /hidio.h | |
parent | a752a4459e38b3ef9c392bb5a0d85f7268f7ae42 (diff) |
added some #defines and #ifdefs in order for code to compile in Windows
svn path=/trunk/externals/io/hidio/; revision=6604
Diffstat (limited to 'hidio.h')
-rw-r--r-- | hidio.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,9 +1,18 @@ #ifndef _HIDIO_H #define _HIDIO_H -#include <stdio.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> +#include <pthread.h>
+#endif #ifdef __linux__ #include <linux/types.h> @@ -35,7 +44,7 @@ typedef void t_clock; #define HIDIO_MAJOR_VERSION 0 #define HIDIO_MINOR_VERSION 0 -/* static char *version = "$Revision: 1.4 $"; */ +/* static char *version = "$Revision: 1.5 $"; */ /*------------------------------------------------------------------------------ * GLOBAL DEFINES |