try to reduce some Amiga cross-compile warnings
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <dos/dos.h>
|
||||
#include <clib/dos_protos.h>
|
||||
#include <proto/dos.h>
|
||||
#endif
|
||||
|
||||
#ifdef __SASC_60 /* since SAS can prevent re-inclusion */
|
||||
|
||||
@@ -110,10 +110,14 @@ enum optchoice { opt_in, opt_out};
|
||||
typedef uchar nhsym;
|
||||
|
||||
#ifndef STRNCMPI
|
||||
#ifndef __SASC_60 /* SAS/C already shifts to stricmp */
|
||||
/* SAS/C already shifts to stricmp */
|
||||
#if !defined(__SASC_60) && !defined(CROSS_TO_AMIGA)
|
||||
#define strcmpi(a, b) strncmpi((a), (b), -1)
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
#define strcmpi(a, b) stricmp(a, b)
|
||||
#endif
|
||||
|
||||
/* #define SPECIALIZATION */ /* do "specialized" version of new topology */
|
||||
|
||||
|
||||
@@ -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[];
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
@@ -891,6 +891,10 @@ amii_loadlib(void)
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef CROSS_TO_AMIGA
|
||||
extern void Abort(long) NORETURN;
|
||||
#endif
|
||||
|
||||
/* fatal error */
|
||||
/*VARARGS1*/
|
||||
void error
|
||||
|
||||
Reference in New Issue
Block a user