str_replace is _WIN32 only
This commit is contained in:
parent
07ba1f0c98
commit
320cb2f961
|
@ -91,7 +91,7 @@ int mkpath(const char *pathname)
|
|||
return -1;
|
||||
}
|
||||
/* make this one if parent has been made */
|
||||
if (mkdir(pathname) == 0) {
|
||||
if (mkdir(pathname, 0777) == 0) {
|
||||
return 0;
|
||||
}
|
||||
/* if it already exists that is fine */
|
||||
|
@ -158,6 +158,7 @@ char *get_human_size(off_t size)
|
|||
return final;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
char *str_replace(char *orig, char *rep, char *with) {
|
||||
char *result; // the return string
|
||||
char *ins; // the next insert point
|
||||
|
@ -197,7 +198,6 @@ char *str_replace(char *orig, char *rep, char *with) {
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
char *strsep (char **stringp, const char *delim)
|
||||
{
|
||||
char *begin, *end;
|
||||
|
|
|
@ -21,9 +21,8 @@ char* get_human_size(off_t size);
|
|||
|
||||
int mkpath(const char *pathname);
|
||||
|
||||
char *str_replace(char *orig, char *rep, char *with);
|
||||
|
||||
#ifdef _WIN32
|
||||
char *str_replace(char *orig, char *rep, char *with);
|
||||
char *strsep(char **stringp, const char *delim);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue