--- ray/src/rt/devtable.c 2011/10/05 17:20:55 2.8 +++ ray/src/rt/devtable.c 2016/03/19 12:51:36 2.9 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: devtable.c,v 2.8 2011/10/05 17:20:55 greg Exp $"; +static const char RCSid[] = "$Id: devtable.c,v 2.9 2016/03/19 12:51:36 schorsch Exp $"; #endif /* * devtable.c - device table for rview. @@ -7,26 +7,30 @@ static const char RCSid[] = "$Id: devtable.c,v 2.8 201 #include "copyright.h" -#include - -#include "color.h" #include "driver.h" -#if !defined(HAS_X11) && !defined(HAS_QT) +#if !defined(HAS_X11) && !defined(HAS_QT) && !defined(WIN_RVIEW) +/* weird logic ... */ #define HAS_X11 #endif #ifdef HAS_X11 extern dr_initf_t x11_init; char dev_default[] = "x11"; -#else +#elif defined(HAS_QT) char dev_default[] = "qt"; +#elif defined(WIN_RVIEW) +char dev_default[] = "win"; #endif #ifdef HAS_QT extern dr_initf_t qt_init; #endif +#ifdef WIN_RVIEW +extern dr_initf_t win_rvudev_init; +#endif + struct device devtable[] = { /* supported devices */ {"slave", "Slave driver", slave_init}, #ifdef HAS_X11 @@ -35,6 +39,9 @@ struct device devtable[] = { /* supported devices * #endif #ifdef HAS_QT {"qt", "QT display", qt_init}, +#endif +#ifdef WIN_RVIEW + {"win", "Windows display", win_rvudev_init}, #endif {0} /* terminator */ };