Fixed two GCC POSIX warnings

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6849 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2017-04-14 21:48:55 +00:00
parent 062a89273c
commit 450343788f
2 changed files with 3 additions and 2 deletions

View file

@ -150,8 +150,8 @@ int _tmain(int argc, TCHAR* argv[])
}
else
{
fprintf(fHdr, "!define LIBRARY_VERSION_HIGH %lu\n", high);
fprintf(fHdr, "!define LIBRARY_VERSION_LOW %lu\n", low);
fprintf(fHdr, "!define LIBRARY_VERSION_HIGH %lu\n", static_cast<unsigned long>(high));
fprintf(fHdr, "!define LIBRARY_VERSION_LOW %lu\n", static_cast<unsigned long>(low));
}
fclose(fHdr);

View file

@ -69,6 +69,7 @@ typedef unsigned long ulg;
# include "../exehead/util.h"
# define zmemcpy mini_memcpy
# else
# include <string.h> // Avoid "incompatible implicit declaration of built-in function"
# define zmemcpy memcpy
# endif
#else