Changeset 363 for libmpc/trunk/win32
- Timestamp:
- 11/23/07 17:39:02 (17 years ago)
- Location:
- libmpc/trunk/win32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/win32/basename.c
r362 r363 48 48 * in which to create a wide character reference copy of path 49 49 */ 50 51 wchar_t refcopy[1 + (len = mbstowcs( NULL, path, 0 ))]; 50 51 wchar_t * refcopy, * refpath; 52 len = mbstowcs( NULL, path, 0 ); 53 refcopy = malloc((1 + len) * sizeof(wchar_t)); 52 54 53 55 /* create the wide character reference copy of path, … … 55 57 */ 56 58 57 wchar_t *refpath = refcopy;59 refpath = refcopy; 58 60 if( ((len = mbstowcs( refpath, path, len )) > 1) && (refpath[1] == L':') ) 59 61 { … … 142 144 } 143 145 146 free(refcopy); 144 147 /* or we had an empty residual path name, after the drive designator, 145 148 * in which case we simply fall through ... -
libmpc/trunk/win32/dirent.c
r362 r363 51 51 52 52 #include <dirent.h> 53 54 #include <unixem/unixem.h>55 53 56 54 #include <errno.h> -
libmpc/trunk/win32/libgen.h
r362 r363 14 14 #define _LIBGEN_H_ 15 15 16 /* All the headers include this file. */17 #include <_mingw.h>18 19 16 #ifdef __cplusplus 20 17 extern "C" { 21 18 #endif 22 19 23 extern __cdecl __MINGW_NOTHROW char *basename (char *); 24 extern __cdecl __MINGW_NOTHROW char *dirname (char *); 20 extern char *basename (char *); 25 21 26 22 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.