#if defined(WIN32)
#include <windows.h>
+#include <tchar.h>
#endif
#ifdef NeXT
if (wdir == NULL)
goto err_noclose;
#ifndef OPENSSL_NO_MULTIBYTE
- if (!MultiByteToWideChar(CP_ACP,0,dir,len_0,wdir,len_0))
+ if (!MultiByteToWideChar(CP_ACP,0,dir,len_0,
+ (WCHAR *)wdir,len_0))
#endif
for (i=0;i<len_0;i++) wdir[i]=(TCHAR)dir[i];
if (sizeof(TCHAR) != sizeof(char))
{
#ifndef OPENSSL_NO_MULTIBYTE
- if (!WideCharToMultiByte(CP_ACP,0,fnam,flen_0,
+ if (!WideCharToMultiByte(CP_ACP,0,
+ (WCHAR *)fnam,flen_0,
slash,sizeof(buf)-len_0,
NULL,0))
#endif