From 251a6e2fdb031c1a7a626887adfdd19c6111092f Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 16 Mar 2015 15:17:49 +0000 Subject: Allow compilation when HAVE_XRENDER is undefined or 0 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 8ca25201e..662e9e6b0 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -2234,6 +2234,7 @@ int Fl_X::ewmh_supported() { } int Fl_X::xrender_supported() { +#if HAVE_XRENDER static int result = -1; if (result == -1) { @@ -2244,6 +2245,9 @@ int Fl_X::xrender_supported() { } return result; +#else + return 0; +#endif } extern Fl_Window *fl_xfocus; -- cgit v1.2.3