diff --git a/Args.cpp b/Args.cpp index 4b13f93..388cca5 100644 --- a/Args.cpp +++ b/Args.cpp @@ -90,9 +90,9 @@ TInt RArgs::open(const char *a_pccTemplate, TInt a_iNumOptions, const char *a_pc for (Index = 1; Index < a_iArgC; ++Index) { - if (strstr(a_pccArgV[Index], " ") > NULL) strcat(m_pcArgumentBuffer, "\""); + if (strstr(a_pccArgV[Index], " ") != NULL) strcat(m_pcArgumentBuffer, "\""); strcat(m_pcArgumentBuffer, a_pccArgV[Index]); - if (strstr(a_pccArgV[Index], " ") > NULL) strcat(m_pcArgumentBuffer, "\""); + if (strstr(a_pccArgV[Index], " ") != NULL) strcat(m_pcArgumentBuffer, "\""); /* If this is not the last argument, append a space to it */ diff --git a/OS4Support.h b/OS4Support.h index 28aa431..c1cd1d6 100644 --- a/OS4Support.h +++ b/OS4Support.h @@ -50,10 +50,16 @@ void RefreshSetGadgetAttrs(struct Gadget *a_gadget, struct Window *a_window, str #ifdef __amigaos4__ -/* Functions renamed in OS4 but still compatible with their OS3 equivalents */ +/* Functions pointlessly renamed in OS4 but still compatible with their OS3 equivalents */ #define GetCurrentDirName(buffer, length) GetCliCurrentDirName(buffer, length) +#ifndef Seek + +#define Seek(file, position, mode) ChangeFilePosition(file, position, mode) + +#endif /* ! Seek */ + #endif /* __amigaos4__ */ #endif /* ! OS4SUPPORT_H */