Unicode on posix fixes

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6217 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2012-03-01 21:06:14 +00:00
parent 382b2fa282
commit 7cf2ef1a08
7 changed files with 110 additions and 55 deletions

View file

@ -103,7 +103,7 @@ int _tmain(int argc, TCHAR* argv[])
// Validate filename
FILE*fIn = FOPEN(filename.c_str(), _T("rb"));
FILE*fIn = FOPEN(filename.c_str(), ("rb"));
filefound = !!fIn;
fclose(fIn);
@ -139,7 +139,7 @@ int _tmain(int argc, TCHAR* argv[])
// Write the version to an NSIS header file
FILE*fHdr = FOPEN(argv[3], _T("wt"));
FILE*fHdr = FOPEN(argv[3], ("wt"));
if (!fHdr) return 1;
// File content is always ASCII so we don't use TCHAR