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
|
|
|
|
2017-10-27 22:11:21 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
// TODO fix data truncation instead of disabling them
|
|
|
|
// VC++ 2015 changes truncation warnings from 4244 to 4267.
|
|
|
|
#pragma warning (disable : 4267)
|
|
|
|
#pragma warning (disable : 4244)
|
|
|
|
#endif
|
|
|
|
|
2002-06-14 12:52:56 +00:00
|
|
|
#ifndef strcasecmp
|
|
|
|
#define strcasecmp stricmp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef strncasecmp
|
|
|
|
#define strncasecmp strnicmp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef vsnprintf
|
|
|
|
#define vsnprintf _vsnprintf
|
|
|
|
#endif
|
|
|
|
|
2017-10-27 12:52:52 +00:00
|
|
|
#ifndef snprintf
|
|
|
|
#define snprintf _snprintf
|
2006-02-23 11:02:24 +00:00
|
|
|
#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
|
|
|
|
|
2012-09-11 15:13:39 +00:00
|
|
|
#ifndef S_IRUSR
|
2008-04-07 19:42:43 +00:00
|
|
|
#define S_IRUSR S_IREAD
|
|
|
|
#endif
|
|
|
|
|
2012-09-11 15:13:39 +00:00
|
|
|
#ifndef S_IWUSR
|
2008-04-07 19:42:43 +00:00
|
|
|
#define S_IWUSR S_IWRITE
|
|
|
|
#endif
|
|
|
|
|
2016-01-20 09:45:06 +00:00
|
|
|
#define HAVE_STRNLEN
|
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
|
2016-09-20 07:33:38 +00:00
|
|
|
#ifndef DEFAULT_PCSC_PROVIDER
|
|
|
|
#define DEFAULT_PCSC_PROVIDER "@DEFAULT_PCSC_PROVIDER@"
|
|
|
|
#endif
|
2002-10-19 14:04:52 +00:00
|
|
|
|
2017-06-13 11:35:32 +00:00
|
|
|
#define ENABLE_NOTIFY
|
|
|
|
|
2012-09-11 15:13:39 +00:00
|
|
|
#define SC_PKCS15_PROFILE_DIRECTORY "C:\\Program Files\\OpenSC Project\\OpenSC\\profiles"
|
2009-01-29 11:47:45 +00:00
|
|
|
|
2010-12-06 08:31:59 +00:00
|
|
|
#define PATH_MAX FILENAME_MAX
|
2003-01-09 11:41:04 +00:00
|
|
|
|
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
|
|
|
|
|
2015-11-06 07:24:16 +00:00
|
|
|
#ifndef VERSION
|
|
|
|
#define VERSION PACKAGE_VERSION
|
|
|
|
#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
|
|
|
|
2015-12-09 00:38:37 +00:00
|
|
|
#ifndef OPENSC_VERSION_MAJOR
|
2017-08-02 21:49:45 +00:00
|
|
|
#define OPENSC_VERSION_MAJOR @OPENSC_VERSION_MAJOR@
|
2015-12-09 00:38:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPENSC_VERSION_MINOR
|
2017-08-02 21:49:45 +00:00
|
|
|
#define OPENSC_VERSION_MINOR @OPENSC_VERSION_MINOR@
|
2015-12-09 00:38:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPENSC_VS_FF_COMPANY_NAME
|
2016-09-20 07:33:38 +00:00
|
|
|
#define OPENSC_VS_FF_COMPANY_NAME "@OPENSC_VS_FF_COMPANY_NAME@"
|
2015-12-09 00:38:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPENSC_VS_FF_PRODUCT_NAME
|
2016-09-20 07:33:38 +00:00
|
|
|
#define OPENSC_VS_FF_PRODUCT_NAME "@OPENSC_VS_FF_PRODUCT_NAME@"
|
2015-12-09 00:38:37 +00:00
|
|
|
#endif
|
|
|
|
|
2017-03-23 15:45:31 +00:00
|
|
|
#ifndef CVCDIR
|
|
|
|
#define CVCDIR "%PROGRAMFILES%\\OpenSC Project\\OpenSC\\cvc"
|
|
|
|
#endif
|
|
|
|
|
2015-01-19 23:53:51 +00:00
|
|
|
#ifndef DEFAULT_PKCS11_PROVIDER
|
2016-09-20 07:33:38 +00:00
|
|
|
#define DEFAULT_PKCS11_PROVIDER "@DEFAULT_PKCS11_PROVIDER@"
|
2015-01-19 23:53:51 +00:00
|
|
|
#endif
|
|
|
|
|
2016-03-01 10:41:00 +00:00
|
|
|
#ifndef OPENSC_SCM_REVISION
|
|
|
|
#define OPENSC_SCM_REVISION "@OPENSC_SCM_REVISION@"
|
|
|
|
#endif
|
|
|
|
|
2002-06-14 12:52:56 +00:00
|
|
|
#endif
|