/*	SCCS Id: @(#)riscosconf.h 3.4	2003/03/02	*/
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed.  See license for details. */

#ifdef RISCOS
#ifndef RISCOSCONF_H
#define RISCOSCONF_H

#define PORT_ID "RISC OS"

/* The RISC OS version is based around the Unix version, so share some of the
   configuration options until the appropriate files get RISC OS-ified */ 

#define SYSV	/* Pose as SYSV and LINUX to get the majority of the code */
#define LINUX	/* configured properly */

#define TEXTCOLOR	/* Use System V r3.2 terminfo color support */
#define VDU_DEFAULT	/* Use a VDU termcap & colour codes */
/* #define ANSI_DEFAULT */	/* Use an ANSI termcap if none is configured */
				/* Is overridden if VDU_DEFAULT is set */

/* Keep file names to 10 chars or less */
/* This would have been called SHORT_FILENAMES, but that's used already */
/* Current settings may cause problems with bones files though */
/* #define RUNTIME_SHORT_FILENAMES */

/*
 * Set default game directory
 */
#define HACKDIR "<NetHack$Playground>"

/*
 * Ensure filename prefixes are used
 */
#define NOCWD_ASSUMPTIONS

/*
 * Define PORT_HELP to be the name of the port-specfic help file.
 * This file is found in HACKDIR.
 * Normally, you shouldn't need to change this.
 * There is currently no port-specific help for RISC OS systems.
 */
/* #define PORT_HELP "RISCOShelp" */

/*
 * Allow ^Z to suspend the game by dropping back to the WIMP
 */
#define SUSPEND

#ifdef TTY_GRAPHICS
/*
 * To enable the `timed_delay' option for using a timer rather than extra
 * screen output when pausing for display effect.
 */
#define TIMED_DELAY
#endif

#ifdef COMPRESS
/* Some implementations of compress need a 'quiet' option.
 * If you've got one of these versions, put -q here.
 * You can also include any other strange options your compress needs.
 * If you have a normal compress, just leave it commented out.
 */
/* #define COMPRESS_OPTIONS "-q" */
#endif

#define FCMASK	0660	/* file creation mask (Useless on RISC OS, but needed to keep other code happy without me going round changing it all) */


/*
 * The remainder of the file should not need to be changed.
 */

#ifdef VDU_DEFAULT
# ifdef ANSI_DEFAULT
#  undef ANSI_DEFAULT
# endif
#endif

#ifdef _AUX_SOURCE
# ifdef AUX /* gcc ? */
#  define _SYSV_SOURCE
#  define _BSD_SOURCE
#else
#  define AUX
# endif
#endif /* _AUX_SOURCE */

#ifndef POSIX_TYPES
# define POSIX_TYPES
#endif
#ifndef POSIX_JOB_CONTROL
# define POSIX_JOB_CONTROL
#endif

#include <time.h>

#ifndef REDO
#define Getchar nhgetch
#endif
#define tgetch getchar

/*#define SHELL*/	/* do not delete the '!' command */
			/* Not supported by RISC OS port yet */

#define GETRES_SUPPORT	/* Remove unix$uid dependency */

#include "system.h"

#if defined(POSIX_TYPES) || defined(__GNUC__)
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#endif

#ifndef index
# define index	strchr
#endif
#ifndef rindex
# define rindex	strrchr
#endif

#define Rand() rand()

extern void riscos_sleep(int k);
#ifdef TIMED_DELAY
# define msleep(k) riscos_sleep(k)
#endif

#define DLBFILE "nhdat"

#endif /* RISCOSCONF_H */
#endif /* RISCOS */
