_countof and swprintf fixes for VC6
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6045 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
34395604e8
commit
82d42b1159
13 changed files with 68 additions and 74 deletions
|
@ -107,6 +107,14 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG;
|
|||
#define _vsnprintf vsnprintf
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef _countof
|
||||
#define COUNTOF _countof
|
||||
#else
|
||||
#define COUNTOF(a) (sizeof(a)/sizeof(a[0]))
|
||||
#endif
|
||||
|
||||
#ifndef __BIG_ENDIAN__
|
||||
# define FIX_ENDIAN_INT32_INPLACE(x) ((void)(x))
|
||||
# define FIX_ENDIAN_INT32(x) (x)
|
||||
|
@ -203,6 +211,11 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG;
|
|||
|
||||
// functions
|
||||
|
||||
// Anders: MSVC's swprintf is non standard, use _snwprintf when you really mean swprintf
|
||||
#if !defined(_MSC_VER) && !defined(_snwprintf)
|
||||
#define _snwprintf swprintf
|
||||
#endif
|
||||
|
||||
// Jim Park: These str functions will probably never be encountered with all my
|
||||
// Unicode changes. And if they were used, these would probably be wrong.
|
||||
#ifndef _WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue