summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-15 10:18:53 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-15 10:18:53 +0000
commit41f92be2f19e771820c12a4c528896e9133545f4 (patch)
tree5c5697637c31db6dc2cb897ca57c5fc31f356807 /src
parent6bfa08c63d75ea8883952dc1ea3a7da5f3da73c7 (diff)
Replace remaining calls to unlink() with fl_unlink().
Tested under Linux, MinGW, and Visual Studio 2015. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_x.cxx2
-rw-r--r--src/fl_utf8.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 9e51e7068..62d19d777 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1396,7 +1396,7 @@ fprintf(stderr,"\n");*/
close(fd);
free(sn_buffer); sn_buffer = 0;
shared = Fl_Shared_Image::get(tmp_fname);
- unlink(tmp_fname);
+ fl_unlink(tmp_fname);
if (!shared) return 0;
uchar *rgb = new uchar[shared->w() * shared->h() * shared->d()];
memcpy(rgb, shared->data()[0], shared->w() * shared->h() * shared->d());
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx
index 0a79e5867..25c2e81b9 100644
--- a/src/fl_utf8.cxx
+++ b/src/fl_utf8.cxx
@@ -454,14 +454,14 @@ char *fl_getcwd(char* b, int l) {
/** Cross-platform function to unlink() (that is, delete) a file using
a UTF-8 encoded filename.
- This function is especially useful under the MSWindows platform where the
- standard function expects UTF-16 encoded non-ASCII filenames.
+ This function is especially useful on the Windows platform where
+ the standard function expects UTF-16 encoded non-ASCII filenames.
- \param f the filename to unlink
+ \param fname the filename to unlink
\return the return value of _wunlink() on Windows or unlink() on other platforms.
*/
-int fl_unlink(const char* f) {
- return Fl::system_driver()->unlink(f);
+int fl_unlink(const char* fname) {
+ return Fl::system_driver()->unlink(fname);
}
/** Cross-platform function to create a directory with a UTF-8 encoded