build fixes for vc
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6421 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
18c0cbe3ec
commit
4997292d4b
2 changed files with 4 additions and 2 deletions
|
@ -22,8 +22,8 @@
|
|||
// some definitions for non Win32 platforms were taken from MinGW's free Win32 library
|
||||
|
||||
|
||||
#if defined(__cplusplus) && defined(MAKENSIS)
|
||||
template<class T> class NSISCHARTYPE{ T _c; public: NSISCHARTYPE(){} NSISCHARTYPE(T c):_c(c){} operator T()const{ return _c; } };
|
||||
#if defined(__cplusplus) && defined(MAKENSIS) && !defined(_MSC_VER)
|
||||
template<class T> class NSISCHARTYPE{ T _c; public: NSISCHARTYPE(){} NSISCHARTYPE(T c):_c(c){} operator T()const{ return _c; } operator int()const{ return (int) _c; } operator bool()const{ return _c != 0; } };
|
||||
typedef NSISCHARTYPE<unsigned short> WINWCHAR; // WINWCHAR is always UTF16LE and should not be passed to wcs* functions
|
||||
#else
|
||||
typedef unsigned short WINWCHAR;
|
||||
|
|
|
@ -99,7 +99,9 @@ bool WINAPI WinStdIO_OStreamWrite(WINSIO_OSDATA&osd, const wchar_t *Str, UINT cc
|
|||
int WINAPI WinStdIO_vfwprintf(FILE*strm, const wchar_t*Fmt, va_list val);
|
||||
int WinStdIO_fwprintf(FILE*strm, const wchar_t*Fmt, ...);
|
||||
int WinStdIO_wprintf(const wchar_t*Fmt, ...);
|
||||
#ifndef _MSC_VER // our tchar.h already defined everything...
|
||||
#include <tchar.h> // Make sure we include the CRTs tchar.h in case it is pulled in by something else later.
|
||||
#endif
|
||||
// We don't hook fflush since the native handle is only used with WriteConsoleW
|
||||
#undef _vsntprintf
|
||||
#define _vsntprintf Error: TODO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue