/* video2.h (emx+gcc) -- Copyright (c) 1987-1994 by Eberhard Mattes */

#if defined (__RSXNT__)
#define IF_WIN32
#define IF_DOS
extern int _v_rsxnt;
#elif defined (__EMX__)
#define IF_DOS
#define IF_OS2
#elif defined (__IBMC__)
#define IF_OS2
#elif defined (__WATCOMC__)
#define IF_WIN32
#endif

#if defined (IF_DOS) && defined (IF_OS2)
#undef IF_OS2
#undef IF_DOS
#define IF_OS2   if (_osmode == OS2_MODE)
#define IF_DOS   else
#endif

#if defined (IF_DOS) && defined (IF_WIN32)
#undef IF_WIN32
#undef IF_DOS
#define IF_WIN32 if (_v_rsxnt)
#define IF_DOS   else
#endif

#if !defined (__EMX__)
typedef void * _Seg16 _far16ptr;
#endif

extern int _v_width;
extern int _v_height;
extern int _v_x;
extern int _v_y;
extern int _v_attr;
extern char *_v_mem;

void _v_puts_len (const char *p, int len);
