mirror of
https://github.com/pcsc-for-php/pcsc.git
synced 2026-08-10 13:52:47 +02:00
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
This commit is contained in:
parent
3e56a29eba
commit
a6d9a70013
2 changed files with 10 additions and 1 deletions
7
config.w32
Executable file
7
config.w32
Executable file
|
|
@ -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]);
|
||||||
|
}
|
||||||
4
pcsc.c
4
pcsc.c
|
|
@ -25,8 +25,10 @@
|
||||||
#include "ext/standard/info.h"
|
#include "ext/standard/info.h"
|
||||||
#include "php_pcsc.h"
|
#include "php_pcsc.h"
|
||||||
|
|
||||||
#include <PCSC/winscard.h>
|
#include <winscard.h>
|
||||||
|
#ifndef PHP_WIN32
|
||||||
#include <PCSC/pcsclite.h>
|
#include <PCSC/pcsclite.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef FALSE
|
#ifndef FALSE
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue