From 951e942ed667b2851292ba9e5cb426d048392e4d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 7 Jan 2007 08:55:02 +0000 Subject: [PATCH] PLATFORM_LINUX -> PLATFORM_POSIX --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40284 --- core/smn_filesystem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/smn_filesystem.cpp b/core/smn_filesystem.cpp index 949f153c..7a135c69 100644 --- a/core/smn_filesystem.cpp +++ b/core/smn_filesystem.cpp @@ -265,7 +265,7 @@ static cell_t sm_FileExists(IPluginContext *pContext, const cell_t *params) return 1; } return 0; -#elif PLATFORM_LINUX +#else if defined PLATFORM_POSIX struct stat s; if (stat(realpath, &s) != 0) { @@ -301,7 +301,7 @@ static cell_t sm_RenameFile(IPluginContext *pContext, const cell_t *params) #ifdef PLATFORM_WINDOWS return (MoveFileA(old_realpath, new_realpath)) ? 1 : 0; -#elif PLATFORM_LINUX +#else if defined PLATFORM_POSIX return (rename(old_realpath, new_realpath)) ? 0 : 1; #endif } @@ -329,7 +329,7 @@ static cell_t sm_DirExists(IPluginContext *pContext, const cell_t *params) return 1; } return 0; -#elif PLATFORM_LINUX +#else if defined PLATFORM_POSIX struct stat s; if (stat(realpath, &s) != 0) { @@ -366,7 +366,7 @@ static cell_t sm_FileSize(IPluginContext *pContext, const cell_t *params) return static_cast(s.st_size); } return -1; -#elif PLATFORM_LINUX +#else if defined PLATFORM_POSIX struct stat s; if (stat(realpath, &s) != 0) {