summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-04-30 18:39:18 +0000
committermeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-04-30 18:39:18 +0000
commit1870e3694d5ce0a892c839b82520ac00f3ea55f8 (patch)
treeda28c28f4bee42663ca13d5abfe7c9c16a65ce51 /include
parentda107e125605438c7cf739ad34bb6204b3d4b85e (diff)
added win32 support for MINGW32-compiler/cross-compiler
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1989 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include')
-rw-r--r--include/librfid/rfid.h16
-rw-r--r--include/librfid/rfid_asic_rc632.h2
-rw-r--r--include/librfid/rfid_layer2.h1
3 files changed, 13 insertions, 6 deletions
diff --git a/include/librfid/rfid.h b/include/librfid/rfid.h
index 187e884..580cc09 100644
--- a/include/librfid/rfid.h
+++ b/include/librfid/rfid.h
@@ -1,13 +1,21 @@
#ifndef _RFID_H
#define _RFID_H
-#include <stdio.h>
+#include <stddef.h>
+#include <sys/types.h>
-#ifdef __LIBRFID__
+#ifdef __MINGW32__
+#define ENOTSUP 100
+#define ETIMEDOUT 101
+typedef unsigned char u_int8_t;
+typedef unsigned short u_int16_t;
+typedef unsigned long u_int32_t;
+typedef unsigned long long u_int64_t;
+#endif/*__MINGW32__*/
-#include <librfid/rfid_system.h>
+#ifdef __LIBRFID__
-//#define DEBUG_LIBRFID
+#include <librfid/rfid_system.h>
#ifdef DEBUG_LIBRFID
diff --git a/include/librfid/rfid_asic_rc632.h b/include/librfid/rfid_asic_rc632.h
index 4eac82e..3aebd1f 100644
--- a/include/librfid/rfid_asic_rc632.h
+++ b/include/librfid/rfid_asic_rc632.h
@@ -3,7 +3,7 @@
struct rfid_asic_transport_handle;
-#include <sys/types.h>
+#include <librfid/rfid.h>
#include <librfid/rfid_asic.h>
struct rfid_asic_rc632_transport {
diff --git a/include/librfid/rfid_layer2.h b/include/librfid/rfid_layer2.h
index dcd05e4..84d4579 100644
--- a/include/librfid/rfid_layer2.h
+++ b/include/librfid/rfid_layer2.h
@@ -1,7 +1,6 @@
#ifndef _RFID_LAYER2_H
#define _RFID_LAYER2_H
-#include <sys/types.h>
#include <librfid/rfid.h>
struct rfid_layer2_handle;
personal git repositories of Harald Welte. Your mileage may vary