#ifndef _AMIGA_H_
#define _AMIGA_H_

extern "C" {
	#include <exec/types.h>
	#include <exec/execbase.h>
	#include <exec/libraries.h>
	#ifdef __PPC__
		#include <powerup/gcclib/powerup_protos.h>
	#endif
	#include <clib/exec_protos.h>
	extern struct ExecBase *SysBase;
	#include <pragmas/exec_pragmas.h>

	#include <dos/dos.h>
	#include <clib/dos_protos.h>
	extern struct DosLibrary *DOSBase;
	#include <pragmas/dos_pragmas.h>

	// prevent as225 signal.h and sys/types.h from ever loading
	//#define SIGNAL_H
	#include <clib/socket_protos.h>
	#include <sys/ioctl.h>
	#include <sys/time.h>
	#include <netdb.h>
	#ifdef __PPC__
		#include "platforms/socket_pragmas.h"
	#endif
//	#define sleep(n) Delay(n*TICKS_PER_SECOND);
//	#define usleep(n) Delay(n*TICKS_PER_SECOND/1000000);

	#include <stdio.h>
	#include <stdlib.h>
	#include <string.h>
	#include <time.h>
	#include <signal.h>
	#include <stdarg.h>
	#include <assert.h>

	//#define _DEV_T
	//#include <sys/stat.h>

	#ifdef __PPC__
		#undef SetSignal
		#define SetSignal(x,y) PPCSetSignal(x,y)
	#endif

}

#endif
