Ticket #1571: patch for building on win32.patch
| File patch for building on win32.patch, 0.9 KB (added by jimmy, 3 years ago) |
|---|
-
src/dynext.c
341 341 if (!STRING_IS_EMPTY(lib) && memcmp(lib->strstart, "lib", 3) == 0) { 342 342 *handle = Parrot_dlopen((char *)lib->strstart + 3, 0); 343 343 if (*handle) { 344 path = Parrot_str_substr(interp, lib, 3, lib->strlen - 3 , NULL, 0);344 path = Parrot_str_substr(interp, lib, 3, lib->strlen - 3); 345 345 return path; 346 346 } 347 347 } … … 351 351 #ifdef __CYGWIN__ 352 352 if (!STRING_IS_EMPTY(lib) && memcmp(lib->strstart, "lib", 3) == 0) { 353 353 path = Parrot_str_concat(interp, CONST_STRING(interp, "cyg"), 354 Parrot_str_substr(interp, lib, 3, lib->strlen - 3 , NULL, 0));354 Parrot_str_substr(interp, lib, 3, lib->strlen - 3)); 355 355 356 356 *handle = dlopen_string(interp, flags, path); 357 357
