Exploit the HAVE_DLSYM and HAVE_DLFCN_H preprocessor variables defined by configure

to control usage of dlopen/dlsym system calls.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-10-04 16:56:09 +00:00
parent 32cbe8ffb0
commit 23e38f1980

View File

@ -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