including reader.h, if possible

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@255 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-08-30 19:39:57 +00:00
parent a6cd9c651c
commit 25a0981fbf

View File

@@ -23,6 +23,17 @@
#include <string.h> #include <string.h>
#include <winscard.h> #include <winscard.h>
#ifdef HAVE_READER_H
#include <reader.h>
#else
typedef struct
{
uint8_t tag;
uint8_t length;
uint32_t value;
} PCSC_TLV_STRUCTURE;
#endif
#ifndef FEATURE_EXECUTE_PACE #ifndef FEATURE_EXECUTE_PACE
#define FEATURE_EXECUTE_PACE 0x20 #define FEATURE_EXECUTE_PACE 0x20
#endif #endif
@@ -31,15 +42,8 @@
#define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400) #define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400)
#endif #endif
typedef struct
{
uint8_t tag;
uint8_t length;
uint32_t value;
} PCSC_TLV_STRUCTURE;
static void
static void
printb(unsigned char *buf, size_t len) printb(unsigned char *buf, size_t len)
{ {
size_t i = 0; size_t i = 0;
@@ -54,7 +58,7 @@ printb(unsigned char *buf, size_t len)
printf("\n"); printf("\n");
} }
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
LONG rv; LONG rv;