diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-15 10:18:53 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-15 10:18:53 +0000 |
| commit | 41f92be2f19e771820c12a4c528896e9133545f4 (patch) | |
| tree | 5c5697637c31db6dc2cb897ca57c5fc31f356807 /fluid/fluid.cxx | |
| parent | 6bfa08c63d75ea8883952dc1ea3a7da5f3da73c7 (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 'fluid/fluid.cxx')
| -rw-r--r-- | fluid/fluid.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 5d65942a6..7c5131829 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -61,7 +61,6 @@ # define access _access # define chdir _chdir # define getcwd _getcwd -# define unlink _unlink # endif // !__WATCOMC__ #else # include <unistd.h> @@ -671,7 +670,7 @@ void new_cb(Fl_Widget *, void *v) { undo_suspend(); read_file(cutfname(1), 0); - unlink(cutfname(1)); + fl_unlink(cutfname(1)); undo_resume(); } else { // No instance name, so read the template without replacements... @@ -864,7 +863,7 @@ void duplicate_cb(Fl_Widget*, void*) { if (!read_file(cutfname(1), 1)) { fl_message("Can't read %s: %s", cutfname(1), strerror(errno)); } - unlink(cutfname(1)); + fl_unlink(cutfname(1)); undo_resume(); force_parent = 0; |
