#ifndef __XINECOMMON_H #define __XINECOMMON_H #include #include #include #define __STDC_FORMAT_MACROS #include #include using namespace std; #include #include #define MIN_XINE_VDR_VERSION 901 #if !defined(XINE_VDR_VERSION) || XINE_VDR_VERSION < MIN_XINE_VDR_VERSION #error xine/vdr.h does not match. Please solve this issue by reading section XINE VDR VERSION MISMATCH in INSTALL! #endif #include // poisened #ifndef APIVERSNUM #define APIVERSNUM VDRVERSNUM #endif namespace PluginXine { extern bool beQuiet; template DST_TYPE &alias_cast(SRC_TYPE &rhs) { union hlp { SRC_TYPE src; DST_TYPE dst; }; return ((hlp &)rhs).dst; } }; #define xfprintf(fh, fmt, args...) \ while (!PluginXine::beQuiet) \ { \ fprintf(fh, fmt, ##args); \ /* char xfmt[ 500 ]; */ \ /* sprintf(xfmt, "%s", fmt); */ \ /* fprintf(fh, xfmt, ##args); */ \ break; \ } #endif //__XINECOMMON_H