summaryrefslogtreecommitdiffstats
path: root/libaf/af_ladspa.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af_ladspa.c')
-rw-r--r--libaf/af_ladspa.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libaf/af_ladspa.c b/libaf/af_ladspa.c
index dadbc45548..97b8982503 100644
--- a/libaf/af_ladspa.c
+++ b/libaf/af_ladspa.c
@@ -296,16 +296,15 @@ static void* mydlopen(const char *filename, int flag) {
size_t filenamelen;
void *result = NULL;
-# ifdef WIN32 /* for windows there's only absolute path support.
- * if you have a windows machine, feel free to fix
- * this. (path separator, shared objects extension,
- * et cetera).
- */
+#if defined(__MINGW32__) || defined(__CYGWIN__)
+ /* For Windows there's only absolute path support.
+ * If you have a Windows machine, feel free to fix this.
+ * (path separator, shared objects extension, et cetera). */
af_msg(AF_MSG_VERBOSE, "\ton windows, only absolute pathnames "
"are supported\n");
af_msg(AF_MSG_VERBOSE, "\ttrying %s\n", filename);
return dlopen(filename, flag);
-# endif
+#endif
filenamelen = strlen(filename);