Make sure we always install the "native" RegTool binary.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6890 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a65c5a4d98
commit
7a18d3e4bc
2 changed files with 17 additions and 10 deletions
|
@ -214,14 +214,14 @@ void CEXEBuild::set_date_time_predefines()
|
|||
st.wHour = ltime->tm_hour, st.wMinute = ltime->tm_min, st.wSecond = ltime->tm_sec;
|
||||
st.wMilliseconds = 0;
|
||||
GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &st, NULL, datebuf, sizeof(datebuf));
|
||||
definedlist.add(_T("__DATE__"), (TCHAR *)datebuf);
|
||||
definedlist.add(_T("__DATE__"), datebuf);
|
||||
GetTimeFormat(LOCALE_USER_DEFAULT, 0, &st, NULL, timebuf, sizeof(timebuf));
|
||||
definedlist.add(_T("__TIME__"), (TCHAR *)timebuf);
|
||||
definedlist.add(_T("__TIME__"), timebuf);
|
||||
#else
|
||||
my_strftime(datebuf, sizeof(datebuf), _T("%x"), ltime);
|
||||
definedlist.add(_T("__DATE__"), (TCHAR *)datebuf);
|
||||
definedlist.add(_T("__DATE__"), datebuf);
|
||||
my_strftime(timebuf, sizeof(timebuf), _T("%X"), ltime);
|
||||
definedlist.add(_T("__TIME__"), (TCHAR *)timebuf);
|
||||
definedlist.add(_T("__TIME__"), timebuf);
|
||||
#endif
|
||||
}
|
||||
void CEXEBuild::del_date_time_predefines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue