From: <and...@us...> - 2014-10-26 23:22:31
|
Revision: 6567 http://sourceforge.net/p/nsis/code/6567 Author: anders_k Date: 2014-10-26 23:22:27 +0000 (Sun, 26 Oct 2014) Log Message: ----------- Fake the LPTSTR type if necessary for MakeNSIS on POSIX Modified Paths: -------------- NSIS/trunk/Source/exehead/api.h NSIS/trunk/Source/exehead/util.c NSIS/trunk/Source/exehead/util.h Modified: NSIS/trunk/Source/exehead/api.h =================================================================== --- NSIS/trunk/Source/exehead/api.h 2014-10-26 23:07:24 UTC (rev 6566) +++ NSIS/trunk/Source/exehead/api.h 2014-10-26 23:22:27 UTC (rev 6567) @@ -60,6 +60,9 @@ #ifndef NSISCALL # define NSISCALL __stdcall #endif +#if !defined(_WIN32) && !defined(LPTSTR) +# define LPTSTR TCHAR* +#endif typedef struct { exec_flags_t *exec_flags; Modified: NSIS/trunk/Source/exehead/util.c =================================================================== --- NSIS/trunk/Source/exehead/util.c 2014-10-26 23:07:24 UTC (rev 6566) +++ NSIS/trunk/Source/exehead/util.c 2014-10-26 23:22:27 UTC (rev 6567) @@ -855,7 +855,7 @@ return ps_tmpbuf; } -void NSISCALL validate_filename(LPTSTR in) { +void NSISCALL validate_filename(TCHAR *in) { TCHAR *nono = _T("*?|<>/\":"); TCHAR *out; TCHAR *out_save; Modified: NSIS/trunk/Source/exehead/util.h =================================================================== --- NSIS/trunk/Source/exehead/util.h 2014-10-26 23:07:24 UTC (rev 6566) +++ NSIS/trunk/Source/exehead/util.h 2014-10-26 23:22:27 UTC (rev 6567) @@ -98,7 +98,7 @@ 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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |