summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window.cxx
diff options
context:
space:
mode:
authorIan MacArthur <imacarthur@gmail.com>2016-12-05 22:06:56 +0000
committerIan MacArthur <imacarthur@gmail.com>2016-12-05 22:06:56 +0000
commitb3c97970f3baba789447098407b513620eae23ef (patch)
treec44a90379a9425548bbc3a56deb91a80bd9cabff /src/Fl_Gl_Window.cxx
parent780755e46a65e932319fa508a6372a306beda36f (diff)
For consistency, make the pre-processor check for the inclusion of "dlfcn.h" be
the same as the check which is subsequently used before calling dlsym() and dlopen(). Note that this may also work around an occasional issue observed when building for Windows with cmake and mingw-64, which was sometimes erroneously attempting to #include "dlfcn.h" - which is not generally appropriate on a Windows host. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12136 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
-rw-r--r--src/Fl_Gl_Window.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index 72468fd5c..7564f1a3a 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -26,9 +26,9 @@ extern int fl_gl_load_plugin;
#include <FL/Fl_Gl_Window_Driver.H>
#include <stdlib.h>
#include <FL/fl_utf8.h>
-# if HAVE_DLFCN_H
+# if (HAVE_DLSYM && HAVE_DLFCN_H)
# include <dlfcn.h>
-# endif // HAVE_DLFCN_H
+# endif // (HAVE_DLSYM && HAVE_DLFCN_H)
# ifdef HAVE_GLXGETPROCADDRESSARB
# define GLX_GLXEXT_LEGACY
# include <GL/glx.h>