Author: manolo
Date: 2011-10-04 09:56:09 -0700 (Tue, 04 Oct 2011)
New Revision: 9128
Log:
Exploit the HAVE_DLSYM and HAVE_DLFCN_H preprocessor variables defined by 
configure
to control usage of dlopen/dlsym system calls.

Modified:
   branches/branch-1.3/src/Fl_x.cxx

Modified: branches/branch-1.3/src/Fl_x.cxx
===================================================================
--- branches/branch-1.3/src/Fl_x.cxx    2011-10-04 16:42:53 UTC (rev 9127)
+++ branches/branch-1.3/src/Fl_x.cxx    2011-10-04 16:56:09 UTC (rev 9128)
@@ -43,7 +43,7 @@
 #  include <X11/Xlocale.h>
 #  include <X11/Xlib.h>
 #  include <X11/keysym.h>
-#define USE_XRANDR 1 // means attempt to dynamically load libXrandr.so
+#define USE_XRANDR (HAVE_DLSYM && HAVE_DLFCN_H) // means attempt to 
dynamically load libXrandr.so
 #if USE_XRANDR
 #include <dlfcn.h>
 #define RRScreenChangeNotifyMask  (1L << 0) // from X11/extensions/Xrandr.h

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to