PLATFORM_LINUX -> PLATFORM_POSIX
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40284
This commit is contained in:
parent
07729d669e
commit
951e942ed6
@ -265,7 +265,7 @@ static cell_t sm_FileExists(IPluginContext *pContext, const cell_t *params)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
#elif PLATFORM_LINUX
|
#else if defined PLATFORM_POSIX
|
||||||
struct stat s;
|
struct stat s;
|
||||||
if (stat(realpath, &s) != 0)
|
if (stat(realpath, &s) != 0)
|
||||||
{
|
{
|
||||||
@ -301,7 +301,7 @@ static cell_t sm_RenameFile(IPluginContext *pContext, const cell_t *params)
|
|||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
return (MoveFileA(old_realpath, new_realpath)) ? 1 : 0;
|
return (MoveFileA(old_realpath, new_realpath)) ? 1 : 0;
|
||||||
#elif PLATFORM_LINUX
|
#else if defined PLATFORM_POSIX
|
||||||
return (rename(old_realpath, new_realpath)) ? 0 : 1;
|
return (rename(old_realpath, new_realpath)) ? 0 : 1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -329,7 +329,7 @@ static cell_t sm_DirExists(IPluginContext *pContext, const cell_t *params)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
#elif PLATFORM_LINUX
|
#else if defined PLATFORM_POSIX
|
||||||
struct stat s;
|
struct stat s;
|
||||||
if (stat(realpath, &s) != 0)
|
if (stat(realpath, &s) != 0)
|
||||||
{
|
{
|
||||||
@ -366,7 +366,7 @@ static cell_t sm_FileSize(IPluginContext *pContext, const cell_t *params)
|
|||||||
return static_cast<cell_t>(s.st_size);
|
return static_cast<cell_t>(s.st_size);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
#elif PLATFORM_LINUX
|
#else if defined PLATFORM_POSIX
|
||||||
struct stat s;
|
struct stat s;
|
||||||
if (stat(realpath, &s) != 0)
|
if (stat(realpath, &s) != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user