From a6d9a70013987b6f78fbb6b84876124331cfea68 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 11 Apr 2013 17:55:27 +0000 Subject: [PATCH] added w32 support; thanks to Goker Cetin: please test this stuff since i don't use windows OS git-svn-id: https://svn.php.net/repository/pecl/pcsc/trunk@330078 c90b9560-bf6c-de11-be94-00142212c4b1 --- config.w32 | 7 +++++++ pcsc.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 config.w32 diff --git a/config.w32 b/config.w32 new file mode 100755 index 0000000..2bc70db --- /dev/null +++ b/config.w32 @@ -0,0 +1,7 @@ +ARG_WITH("pcsc", "PC/SC Support", "no"); +if (PHP_PCSC != "no") { + // DEFINE("LIBS", "kernel32.lib ole32.lib user32.lib advapi32.lib shell32.lib ws2_32.lib Dnsapi.lib"); + ADD_FLAG("LIBS","winscard.lib"); + EXTENSION("pcsc", "pcsc.c", $ext_shared); + PHP_INSTALL_HEADERS([php_pcsc.h]); +} \ No newline at end of file diff --git a/pcsc.c b/pcsc.c index 9bf0210..4c9bb6a 100644 --- a/pcsc.c +++ b/pcsc.c @@ -25,8 +25,10 @@ #include "ext/standard/info.h" #include "php_pcsc.h" -#include +#include +#ifndef PHP_WIN32 #include +#endif #ifndef FALSE #define FALSE 0