- auto conversion of paths on POSIX platforms - based on patch #1005673
- LoadLanguageFile error message improvement git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3636 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
827b69fbb5
commit
98caca8be1
8 changed files with 184 additions and 51 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
#ifndef _WIN32
|
||||
# include <iconv.h>
|
||||
# include <stdio.h>
|
||||
# include <glob.h>
|
||||
#endif
|
||||
#include "ResourceEditor.h"
|
||||
|
||||
|
@ -44,6 +46,23 @@ inline size_t __iconv_adaptor
|
|||
{
|
||||
return iconv_func (cd, (T)inbuf, inbytesleft, outbuf, outbytesleft);
|
||||
}
|
||||
|
||||
char *my_convert(const char *path);
|
||||
void my_convert_free(char *converted_path);
|
||||
int my_open(const char *pathname, int flags);
|
||||
FILE *my_fopen(const char *path, const char *mode);
|
||||
int my_glob(const char *pattern, int flags,
|
||||
int errfunc(const char * epath, int eerrno), glob_t *pglob);
|
||||
|
||||
#define FOPEN(a, b) my_fopen(a, b)
|
||||
#define GLOB(a, b, c, d) my_glob(a, b, c, d)
|
||||
#define OPEN(a, b) my_open(a, b)
|
||||
|
||||
#else
|
||||
|
||||
#define FOPEN(a, b) fopen(a, b)
|
||||
#define GLOB(a, b, c, d) glob(a, b, c, d)
|
||||
#define OPEN(a, b) open(a, b)
|
||||
#endif
|
||||
|
||||
#endif //_UTIL_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue