diff options
author | meri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-04-30 18:39:18 +0000 |
---|---|---|
committer | meri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-04-30 18:39:18 +0000 |
commit | 1870e3694d5ce0a892c839b82520ac00f3ea55f8 (patch) | |
tree | da28c28f4bee42663ca13d5abfe7c9c16a65ce51 /include | |
parent | da107e125605438c7cf739ad34bb6204b3d4b85e (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.h | 16 | ||||
-rw-r--r-- | include/librfid/rfid_asic_rc632.h | 2 | ||||
-rw-r--r-- | include/librfid/rfid_layer2.h | 1 |
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; |