mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 06:21:26 +08:00
filename_relative() now converts the current directory to forward
slashes as needed on WIN32 (STR #816) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
|
||||
|
||||
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
||||
#744, STR #745)
|
||||
- filename_relative() now converts the current directory
|
||||
to forward slashes as needed on WIN32 (STR #816)
|
||||
- Fl_File_Chooser::value() and ::directory() now handle
|
||||
paths with backslashes on WIN32 (STR #811)
|
||||
- Added the standard rgb.txt file from X11 to the test
|
||||
|
||||
@@ -134,6 +134,9 @@ fl_filename_relative(char *to, // O - Relative filename
|
||||
}
|
||||
|
||||
#if defined(WIN32) || defined(__EMX__)
|
||||
for (slash = strchr(cwd, '\\'); slash; slash = strchr(slash + 1, '\\'))
|
||||
*slash = '/';
|
||||
|
||||
if (!strcasecmp(from, cwd)) {
|
||||
strlcpy(to, ".", tolen);
|
||||
return (1);
|
||||
|
||||
Reference in New Issue
Block a user