From 1870e3694d5ce0a892c839b82520ac00f3ea55f8 Mon Sep 17 00:00:00 2001 From: meri Date: Mon, 30 Apr 2007 18:39:18 +0000 Subject: added win32 support for MINGW32-compiler/cross-compiler git-svn-id: https://svn.gnumonks.org/trunk/librfid@1989 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid.h | 16 ++++++++++++---- include/librfid/rfid_asic_rc632.h | 2 +- include/librfid/rfid_layer2.h | 1 - 3 files changed, 13 insertions(+), 6 deletions(-) (limited to 'include') 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 +#include +#include -#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 +#ifdef __LIBRFID__ -//#define DEBUG_LIBRFID +#include #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 +#include #include 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 #include struct rfid_layer2_handle; -- cgit v1.2.3