summaryrefslogtreecommitdiff
path: root/test/cairo-test.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-06-14 15:33:18 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-06-14 16:47:32 +0200
commit3b9c8744898823a4b09917f0540a324318fef726 (patch)
treefb30581285061350600eba1112c558fc95952643 /test/cairo-test.c
parent5cb18fcec7d973595e4e8ae992ce84836b815ce4 (diff)
downloadcairo-3b9c8744898823a4b09917f0540a324318fef726.tar.gz
test: Use POSIX-compatible unlink
On Win32, the POSIX-compatible unlink function is named "_unlink". A function named "unlink" exists, but does not have the same behavior as the POSIX-specified one. This function makes the cairo test suite behave incorrectly and immediately terminate with the message: Error: Cannot remove cairo-test-suite.log: No error
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r--test/cairo-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c
index e03f9f71d..b438e0718 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -75,6 +75,7 @@
#include <crtdbg.h>
#define vsnprintf _vsnprintf
#define access _access
+#define unlink _unlink
#define F_OK 0
#endif