Fake the LPTSTR type if necessary for MakeNSIS on POSIX
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6567 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
461aa4b633
commit
2afe5ca95e
3 changed files with 5 additions and 2 deletions
|
@ -60,6 +60,9 @@ typedef struct
|
|||
#ifndef NSISCALL
|
||||
# define NSISCALL __stdcall
|
||||
#endif
|
||||
#if !defined(_WIN32) && !defined(LPTSTR)
|
||||
# define LPTSTR TCHAR*
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
exec_flags_t *exec_flags;
|
||||
|
|
|
@ -855,7 +855,7 @@ TCHAR * NSISCALL GetNSISString(TCHAR *outbuf, int strtab)
|
|||
return ps_tmpbuf;
|
||||
}
|
||||
|
||||
void NSISCALL validate_filename(LPTSTR in) {
|
||||
void NSISCALL validate_filename(TCHAR *in) {
|
||||
TCHAR *nono = _T("*?|<>/\":");
|
||||
TCHAR *out;
|
||||
TCHAR *out_save;
|
||||
|
|
|
@ -98,7 +98,7 @@ TCHAR * NSISCALL findchar(TCHAR *str, TCHAR c);
|
|||
TCHAR * NSISCALL trimslashtoend(TCHAR *buf);
|
||||
TCHAR * NSISCALL skip_root(TCHAR *path);
|
||||
int NSISCALL is_valid_instpath(TCHAR *s);
|
||||
void NSISCALL validate_filename(LPTSTR fn);
|
||||
void NSISCALL validate_filename(TCHAR *fn);
|
||||
|
||||
/**
|
||||
* MoveFileOnReboot tries to move a file by the name of pszExisting to the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue