Attached, a patch contribution to pcsc-lite's src/bundleTool.c, for Win32 building.

Ill contribute my musclecard lib build changes once I've harmonised it with the official win32
build tools, next week.



22a23
#ifndef WIN32
23a25,26
#endif
#ifdef HAVE_DIRENT_H
24a28
#endif
28c32,35
< #include <wintypes.h>
---
#include "wintypes.h"
#ifdef SCARD_MS
#include "win32_pcsclite.h"
#endif
36a44,55
#ifndef WIN32
#ifndef MSC_SVC_DROPDIR
#define MSC_SVC_DROPDIR "/usr/local/pcsc/services"
#endif
#else
#ifdef MSC_SVC_DROPDIR
#undef MSC_SVC_DROPDIR
#endif
#define MSC_SVC_DROPDIR "C:\\Program Files\\Muscle\\Services"
#endif



57a77
#ifndef WIN32
59a80,85
#else
        HANDLE hFind;
        WIN32_FIND_DATA findData;
        char findPath[200];
        int find;
#endif
73a100
#ifndef WIN32
75d101
<
77a104,113
#else
        sprintf(findPath, "%s\\*.bundle", BUNDLE_DIR);
        hFind = FindFirstFile(findPath, &findData);

if (hFind == INVALID_HANDLE_VALUE)
{
printf("Cannot open PC/SC token drivers directory: %s", findPath);
return -1;
}
#endif
84c120
<
---
#ifndef WIN32
89a126,132
#else
        do
        {
                if (strstr(findData.cFileName, ".bundle") != 0)
                {
                        printf("  %d.     %s\n", i++, findData.cFileName);
#endif
92a136,140
#ifdef WIN32
        /* This is part of a Do..While loop (see above) */
        while (FindNextFile(hFind, &findData) != 0);
#endif

108c156,158
<    closedir(bundleDir);
---
#ifndef WIN32
        closedir(bundleDir);
#endif
109a160
#ifndef WIN32
111a163,173
#else
        sprintf(findPath, "%s\\*.bundle", BUNDLE_DIR);
        hFind = FindFirstFile(findPath, &findData);

if (hFind == INVALID_HANDLE_VALUE)
{
printf("Cannot open PC/SC token drivers directory: %s", findPath);
return -1;
} else
find = 1;
#endif
114a177
#ifndef WIN32
117a181,185
#else
                if (find)
                {
                        if (strstr(findData.cFileName, ".bundle") != 0)
#endif
121a190,193
#ifdef WIN32
                if(userChoice)
                                find = (FindNextFile(hFind, &findData) != 0);
#endif
124a197,198

#ifndef WIN32
131a206,209
#else
sprintf(chosenInfoPlist, "%s\\%s\\Contents\\Info.plist", BUNDLE_DIR,
findData.cFileName);
#endif
132a211
#ifndef WIN32
133a213
#endif

_________________________________________________________________
Concerned that messages may bounce because your Hotmail account has exceeded its 2MB storage limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es


_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to