2002-06-14 12:52:56 +00:00
|
|
|
#ifndef _OPENSC_WINCONFIG_H
|
|
|
|
#define _OPENSC_WINCONFIG_H
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
2002-12-22 14:43:13 +00:00
|
|
|
#ifndef mkdir
|
|
|
|
#define mkdir _mkdir
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef access
|
|
|
|
#define access _access
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
2002-11-11 08:22:11 +00:00
|
|
|
#define HAVE_GETOPT_H
|
2002-10-19 14:04:52 +00:00
|
|
|
#define HAVE_IO_H
|
2002-12-22 14:43:13 +00:00
|
|
|
#define HAVE_GETPASS
|
2002-10-19 14:04:52 +00:00
|
|
|
|
2003-01-20 10:12:28 +00:00
|
|
|
/* %windir% is replaced by the path of the Windows directory,
|
|
|
|
* this is C:\WINNT or C:\WINDOWS on most systems.
|
|
|
|
*/
|
|
|
|
#define OPENSC_CONF_PATH "%windir%\\opensc.conf"
|
2002-06-14 12:52:56 +00:00
|
|
|
|
2003-01-09 11:41:04 +00:00
|
|
|
#define PATH_MAX _MAX_PATH
|
|
|
|
|
2002-12-22 14:43:13 +00:00
|
|
|
/* src/common/getpass.c */
|
|
|
|
extern char *getpass(const char *prompt);
|
|
|
|
|
2002-06-14 12:52:56 +00:00
|
|
|
#endif
|