summaryrefslogtreecommitdiff
path: root/fluid/undo.cxx
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 /fluid/undo.cxx
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 'fluid/undo.cxx')
-rw-r--r--fluid/undo.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/fluid/undo.cxx b/fluid/undo.cxx
index 7d4af49bd..62770fec4 100644
--- a/fluid/undo.cxx
+++ b/fluid/undo.cxx
@@ -3,7 +3,7 @@
//
// FLUID undo support for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2017 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -22,15 +22,11 @@
#include <FL/Fl_Preferences.H>
#include <FL/filename.H>
#include "../src/flstring.h"
+
#if defined(WIN32) && !defined(__CYGWIN__)
# include <io.h>
# include <windows.h>
# define getpid (int)GetCurrentProcessId
-# ifndef __WATCOMC__
-// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
-// on Windows, which is supposed to be POSIX compliant...
-# define unlink _unlink
-# endif // !__WATCOMC__
#else
# include <unistd.h>
#endif // WIN32 && !__CYGWIN__
@@ -159,7 +155,7 @@ void undo_clear() {
// Remove old checkpoint files...
for (int i = 0; i <= undo_max; i ++) {
- unlink(undo_filename(i, filename, sizeof(filename)));
+ fl_unlink(undo_filename(i, filename, sizeof(filename)));
}
// Reset current, last, and save indices...