summaryrefslogtreecommitdiff
path: root/fluid/undo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/undo.cxx')
-rw-r--r--fluid/undo.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/fluid/undo.cxx b/fluid/undo.cxx
index 77a2f2f31..e23b6ca16 100644
--- a/fluid/undo.cxx
+++ b/fluid/undo.cxx
@@ -34,6 +34,9 @@
# include <io.h>
# include <windows.h>
# define getpid (int)GetCurrentProcessId
+// 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
#else
# include <unistd.h>
#endif // WIN32 && !__CYGWIN__