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
This commit is contained in:
Andrea Canciani 2011-06-14 15:33:18 +02:00
parent 5cb18fcec7
commit 3b9c874489

View file

@ -75,6 +75,7 @@
#include <crtdbg.h>
#define vsnprintf _vsnprintf
#define access _access
#define unlink _unlink
#define F_OK 0
#endif