Add _cdio_strdup_fixpath for absolute paths handling in MinGW

* MinGW may provide absolute paths in the form /c/directory/...
  to native calls that require instead c:/directory
This commit is contained in:
Pete Batard
2012-03-05 15:32:35 +00:00
parent 35aa0c7dec
commit e6b00d7dcf
5 changed files with 61 additions and 10 deletions

View File

@@ -99,6 +99,12 @@ _cdio_memdup (const void *mem, size_t count);
char *
_cdio_strdup_upper (const char str[]);
/* Duplicate path and make it platform compliant. Typically needed for
MinGW/MSYS where a "/c/..." path must be translated to "c:/..." for
use with fopen(), etc. Returned string must be freed by the caller. */
char *
_cdio_strdup_fixpath (const char path[]);
void
_cdio_strfreev(char **strv);