#ifndef MTYPES_H
#define MTYPES_H

#include <stddef.h>
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2


/*
	MikMod atomic types:
	====================
*/

typedef char            SBYTE;          /* has to be 1 byte signed */
typedef unsigned char   UBYTE;          /* has to be 1 byte unsigned */
typedef short           SWORD;          /* has to be 2 bytes signed */
typedef unsigned short  UWORD;          /* has to be 2 bytes unsigned */
typedef long            SLONG;          /* has to be 4 bytes signed */
typedef unsigned long   ULONG;			/* has to be 4 bytes unsigned */

#ifndef AMIGA_PAULADRV
typedef int             BOOL;           /* doesn't matter.. 0=FALSE, <>0 true */
#endif


#ifdef __WATCOMC__
#define inportb(x) inp(x)
#define outportb(x,y) outp(x,y)
#define inport(x) inpw(x)
#define outport(x,y) outpw(x,y)
#define disable() _disable()
#define enable() _enable()
#endif

#endif
