#undef __WIN32__

#include <stdio.h>
#include <malloc.h>
#include <dos.h>
#include <math.h>
#include <sys\types.h>
#include <sys\stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <ctype.h>
#include <io.h>
#include <direct.h>

//#include "..\midas07\include\midasdll.h"

#include "coords.h"

#include "sync.h"



#ifdef __cplusplus
extern "C" {
#endif

typedef			unsigned char		UBYTE;
typedef			signed char			SBYTE;
typedef			unsigned char		BYTE;
typedef			unsigned short int	UWORD;
typedef			signed short int		SWORD;
typedef			unsigned short int	WORD;
//typedef			unsigned int		ULONG;
typedef			signed int			SLONG;
//typedef			unsigned int		LONG;
typedef			unsigned int		UDWORD;
typedef			signed int			SDWORD;
//typedef			unsigned int		DWORD;

#pragma warning (disable:4305) 
#pragma warning (disable:4101) // unused var

#define CHAR unsigned char
#define VOID void

#define PI 3.14159265493

extern unsigned char winpal[256][4];
extern unsigned char wina000[480][320];

extern void xcopy(int yofs, unsigned char *src, int numy);
extern void CopyPal2Screen(unsigned char *src,int numy);


#include "stuff.h"

#define SQR(x) ((x)*(x))

#include "demo1.h"

#ifdef __cplusplus
}
#endif
