From dfdd1976e97bc46d39d1817fe9e2387ff614981c Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 25 Feb 2015 21:13:05 +0100 Subject: [PATCH] configure: define SCREENSHOT in config.h defining it in video.h does not work as it is not included everywhere where the define is needed --- configure.ac | 7 +++++++ lib/libcoolstream/video_cs.h | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 77060b915..8ce55ea4c 100644 --- a/configure.ac +++ b/configure.ac @@ -125,6 +125,13 @@ PKG_CHECK_MODULES([LUA], [lua >= 5.2], echo "lua >= 5.2 found", [ AC_DEFINE(STATIC_LUAPOSIX,1,[Define to 1 for static lua build.]) ]) ]) + +if test "$BOXTYPE" = "coolstream" || + test "$BOXTYPE" = "tripledragon" || + test "$BOXTYPE" = "spark"; then + AC_DEFINE(SCREENSHOT,1,[Define to 1 if the platform supports screenshots]) +fi + TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-2.0) #TUXBOX_APPS_LIB_PKGCONFIG(CONFIGFILE,tuxbox-configfile) diff --git a/lib/libcoolstream/video_cs.h b/lib/libcoolstream/video_cs.h index f858d0793..47524c1b6 100644 --- a/lib/libcoolstream/video_cs.h +++ b/lib/libcoolstream/video_cs.h @@ -19,8 +19,6 @@ #define CS_VIDEO_PDATA void #endif -#define SCREENSHOT 1 - typedef enum { ANALOG_SD_RGB_CINCH = 0x00, ANALOG_SD_YPRPB_CINCH,