2002-06-14 12:52:56 +00:00
|
|
|
#ifndef _OPENSC_WINCONFIG_H
|
|
|
|
#define _OPENSC_WINCONFIG_H
|
|
|
|
|
2003-09-11 06:02:43 +00:00
|
|
|
#include <stdio.h>
|
2003-09-03 18:18:57 +00:00
|
|
|
#include <windows.h>
|
2008-04-07 19:42:43 +00:00
|
|
|
#include <winscard.h>
|
2003-09-03 18:18:57 +00:00
|
|
|
#include <sys/timeb.h>
|
2008-04-07 19:42:43 +00:00
|
|
|
#include <sys/stat.h>
|
2003-09-03 18:18:57 +00:00
|
|
|
|
2002-06-14 12:52:56 +00:00
|
|
|
#ifndef strcasecmp
|
|
|
|
#define strcasecmp stricmp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef strncasecmp
|
|
|
|
#define strncasecmp strnicmp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef snprintf
|
|
|
|
#define snprintf _snprintf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef vsnprintf
|
|
|
|
#define vsnprintf _vsnprintf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef isatty
|
|
|
|
#define isatty _isatty
|
|
|
|
#endif
|
|
|
|
|
2006-02-23 11:02:24 +00:00
|
|
|
#ifndef strnicmp
|
|
|
|
#define strnicmp _strnicmp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef stricmp
|
|
|
|
#define stricmp _stricmp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef strdup
|
|
|
|
#define strdup _strdup
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef fileno
|
|
|
|
#define fileno _fileno
|
|
|
|
#endif
|
|
|
|
|
2002-12-22 14:43:13 +00:00
|
|
|
#ifndef mkdir
|
|
|
|
#define mkdir _mkdir
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef access
|
|
|
|
#define access _access
|
|
|
|
#endif
|
|
|
|
|
2006-02-23 11:02:24 +00:00
|
|
|
#ifndef unlink
|
|
|
|
#define unlink _unlink
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef putenv
|
|
|
|
#define putenv _putenv
|
|
|
|
#endif
|
|
|
|
|
2002-12-22 14:43:13 +00:00
|
|
|
#ifndef R_OK
|
|
|
|
#define R_OK 4 /* test whether readable. */
|
|
|
|
#define W_OK 2 /* test whether writable. */
|
|
|
|
#define X_OK 1 /* test whether execubale. */
|
|
|
|
#define F_OK 0 /* test whether exist. */
|
|
|
|
#endif
|
|
|
|
|
2008-04-07 19:42:43 +00:00
|
|
|
#ifndef S_IRUSR
|
|
|
|
#define S_IRUSR S_IREAD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef S_IWUSR
|
|
|
|
#define S_IWUSR S_IWRITE
|
|
|
|
#endif
|
|
|
|
|
2002-10-19 14:04:52 +00:00
|
|
|
#define HAVE_IO_H
|
2008-04-07 19:42:43 +00:00
|
|
|
#define ENABLE_PCSC
|
2009-01-29 11:47:45 +00:00
|
|
|
#define HAVE_WINSCARD_H
|
2008-04-07 19:42:43 +00:00
|
|
|
#define DEFAULT_PCSC_PROVIDER "winscard.dll"
|
2002-10-19 14:04:52 +00:00
|
|
|
|
2009-01-29 11:47:45 +00:00
|
|
|
#define SC_PKCS15_PROFILE_DIRECTORY "C:\\Program Files\\OpenSC\\profiles"
|
|
|
|
|
2003-01-09 11:41:04 +00:00
|
|
|
#define PATH_MAX _MAX_PATH
|
|
|
|
|
2008-04-07 19:42:43 +00:00
|
|
|
#ifndef PACKAGE_VERSION
|
2008-04-08 18:36:42 +00:00
|
|
|
#define PACKAGE_VERSION "@PACKAGE_VERSION@"
|
2003-09-17 18:43:45 +00:00
|
|
|
#endif
|
|
|
|
|
2008-04-07 19:42:43 +00:00
|
|
|
#ifndef PACKAGE_NAME
|
2008-04-08 18:36:42 +00:00
|
|
|
#define PACKAGE_NAME "@PACKAGE_NAME@"
|
2008-04-07 19:42:43 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPENSC_FEATURES
|
2008-04-07 21:28:37 +00:00
|
|
|
#define OPENSC_FEATURES "N/A"
|
2008-04-07 19:42:43 +00:00
|
|
|
#endif
|
2002-12-22 14:43:13 +00:00
|
|
|
|
2002-06-14 12:52:56 +00:00
|
|
|
#endif
|