try to reduce some Amiga cross-compile warnings

This commit is contained in:
nhmall
2026-03-25 08:48:14 -04:00
parent 3c89dc2387
commit b58d2d4096
5 changed files with 20 additions and 4 deletions

View File

@@ -450,7 +450,11 @@ fopenp(const char *name, const char *mode)
static BPTR OrgDirLock = NO_LOCK;
int
chdir(char *dir)
chdir(
#ifdef CROSS_TO_AMIGA
const
#endif
char *dir)
{
extern char orgdir[];

View File

@@ -31,10 +31,10 @@ void getreturn(const char *);
#ifndef msmsg
void msmsg( const char *, ... );
#endif
#if !defined(__SASC_60) && !defined(_DCC)
#if !defined(__SASC_60) && !defined(_DCC) && !defined(CROSS_TO_AMIGA)
int chdir(char *);
#endif
#ifndef strcmpi
#ifndef strcmpi
int strcmpi(char * , char *);
#endif
#if !defined(memcmp) && !defined(AZTEC_C) && !defined(_DCC) && !defined(__GNUC__)

View File

@@ -891,6 +891,10 @@ amii_loadlib(void)
{
}
#ifdef CROSS_TO_AMIGA
extern void Abort(long) NORETURN;
#endif
/* fatal error */
/*VARARGS1*/
void error