]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcatomic.c
Write caches to first directory with permission. Valid cache in FcDirCacheOpen.
[fontconfig.git] / src / fcatomic.c
index 65163fbdb763f83df5328c90abb0a72933dc5676..a8b30f88c5f8aa5c62b0237703339345454e9ab5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * $RCSId: xc/lib/fontconfig/src/fcatomic.c,v 1.2 2002/03/04 21:15:28 tsi Exp $
  *
- * Copyright © 2002 Keith Packard
+ * Copyright Â© 2002 Keith Packard
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -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;