Commit ba76916f authored by Patrick Lam's avatar Patrick Lam
Browse files

On Windows, unlink before rename. Reported by Tim Evans.

parent d8fda87d
2006-03-22 Patrick Lam <plam@mit.edu>
* src/fcatomic.c:
On Windows, unlink before rename. Reported by Tim Evans.
2006-03-08 Egmont Koblinger <egmont@uhulinux.hu>
reviewed by: plam
......
......@@ -177,6 +177,9 @@ FcAtomicOrigFile (FcAtomic *atomic)
FcBool
FcAtomicReplaceOrig (FcAtomic *atomic)
{
#ifdef _WIN32
unlink (atomic->file);
#endif
if (rename ((char *) atomic->new, (char *) atomic->file) < 0)
return FcFalse;
return FcTrue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment