qt: Don't normalize paths on non-Windows
This commit is contained in:
@@ -238,10 +238,12 @@ plat_path_abs(char *path)
|
|||||||
void
|
void
|
||||||
plat_path_normalize(char* path)
|
plat_path_normalize(char* path)
|
||||||
{
|
{
|
||||||
|
#ifdef Q_OS_WINDOWS
|
||||||
while (*path++ != 0)
|
while (*path++ != 0)
|
||||||
{
|
{
|
||||||
if (*path == '\\') *path = '/';
|
if (*path == '\\') *path = '/';
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ inital()
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialized = 1;
|
initialized = 1;
|
||||||
|
atexit(closeal);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -285,10 +285,7 @@ plat_path_abs(char *path)
|
|||||||
void
|
void
|
||||||
plat_path_normalize(char* path)
|
plat_path_normalize(char* path)
|
||||||
{
|
{
|
||||||
while (*path++ != 0)
|
/* No-op. */
|
||||||
{
|
|
||||||
if (*path == '\\') *path = '/';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user