bug report #1005303 - NSIS build warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3630 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b58a609b69
commit
1855c9f7a5
3 changed files with 9 additions and 2 deletions
|
@ -160,9 +160,9 @@ void CEXEBuild::set_date_time_predefines()
|
|||
GetTimeFormat(LOCALE_USER_DEFAULT, 0, &stime, NULL, timebuf, sizeof(timebuf));
|
||||
definedlist.add("__TIME__",(char *)timebuf);
|
||||
#else
|
||||
strftime(datebuf, sizeof(datebuf), "%x", ltime);
|
||||
my_strftime(datebuf, sizeof(datebuf), "%x", ltime);
|
||||
definedlist.add("__DATE__",(char *)datebuf);
|
||||
strftime(timebuf, sizeof(timebuf), "%X", ltime);
|
||||
my_strftime(timebuf, sizeof(timebuf), "%X", ltime);
|
||||
definedlist.add("__TIME__",(char *)timebuf);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "Platform.h"
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <time.h>
|
||||
#include "exedata.h"
|
||||
#include "exehead/fileform.h"
|
||||
#include "util.h"
|
||||
|
@ -432,3 +433,7 @@ void operator delete(void *p) {
|
|||
void operator delete [](void *p) {
|
||||
if (p) free(p);
|
||||
}
|
||||
|
||||
size_t my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm) {
|
||||
return strftime(s, max, fmt, tm);
|
||||
}
|
||||
|
|
|
@ -27,6 +27,8 @@ int generate_unicons_offsets(unsigned char* exeHeader, unsigned char* uninstIcon
|
|||
// returns the number of WCHARs in str including null charcter
|
||||
int WCStrLen(const WCHAR* szwStr);
|
||||
|
||||
size_t my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm);
|
||||
|
||||
#ifndef _WIN32
|
||||
char *CharPrev(const char *s, const char *p);
|
||||
char *CharNext(const char *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue