summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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