comparison libaf/af_ladspa.c @ 27727:48c1ae64255b

Replace preprocessor check for WIN32 with checks for __MINGW32__ and __CYGWIN__. This avoids a pointless indirection that only obscures what is really done.
author diego
date Mon, 13 Oct 2008 16:23:55 +0000
parents b3a38b361fef
children d5d66bff938a
comparison
equal deleted inserted replaced
27726:5e3c7164f943 27727:48c1ae64255b
294 const char *end, *start, *ladspapath; 294 const char *end, *start, *ladspapath;
295 int endsinso, needslash; 295 int endsinso, needslash;
296 size_t filenamelen; 296 size_t filenamelen;
297 void *result = NULL; 297 void *result = NULL;
298 298
299 # ifdef WIN32 /* for windows there's only absolute path support. 299 #if defined(__MINGW32__) || defined(__CYGWIN__)
300 * if you have a windows machine, feel free to fix 300 /* For Windows there's only absolute path support.
301 * this. (path separator, shared objects extension, 301 * If you have a Windows machine, feel free to fix this.
302 * et cetera). 302 * (path separator, shared objects extension, et cetera). */
303 */
304 af_msg(AF_MSG_VERBOSE, "\ton windows, only absolute pathnames " 303 af_msg(AF_MSG_VERBOSE, "\ton windows, only absolute pathnames "
305 "are supported\n"); 304 "are supported\n");
306 af_msg(AF_MSG_VERBOSE, "\ttrying %s\n", filename); 305 af_msg(AF_MSG_VERBOSE, "\ttrying %s\n", filename);
307 return dlopen(filename, flag); 306 return dlopen(filename, flag);
308 # endif 307 #endif
309 308
310 filenamelen = strlen(filename); 309 filenamelen = strlen(filename);
311 310
312 endsinso = 0; 311 endsinso = 0;
313 if (filenamelen > 3) 312 if (filenamelen > 3)