summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Preferences.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx
index d29a1b6b8..26aba6846 100644
--- a/src/Fl_Preferences.cxx
+++ b/src/Fl_Preferences.cxx
@@ -1840,7 +1840,7 @@ int Fl_Plugin_Manager::load(const char *filename)
{
// the functions below will autmaticaly load plugins that are defined:
// Fl_My_Plugin plugin();
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
HMODULE dl = LoadLibrary(filename);
#else
void * dl = dlopen(filename, RTLD_LAZY);