]> git.wh0rd.org - fontconfig.git/blobdiff - fc-cache/fc-cache.c
LD_ADD missing dependencies for binaries. Reported by Edson Alves Pereira.
[fontconfig.git] / fc-cache / fc-cache.c
index b80d4160c020e8d7161aaf6b65d55696eb226f59..ce6b567ce92e6b92ce064261640a4899f8713b5d 100644 (file)
 #define HAVE_GETOPT 1
 #endif
 
+#if defined (_WIN32)
+#define STRICT
+#include <windows.h>
+#define sleep(x) Sleep((x) * 1000)
+#undef STRICT
+#endif
+
 #ifndef HAVE_GETOPT
 #define HAVE_GETOPT 0
 #endif
@@ -234,6 +241,8 @@ scanDirs (FcStrList *list, FcConfig *config, char *program, FcBool force, FcBool
                printf ("caching, %d fonts, %d dirs\n", 
                        set->nfont, nsubdirs (subdirs));
 
+           /* This is the only reason we can't combine 
+            * Valid w/HasCurrentArch... */
             if (!FcDirCacheValid (dir))
                 if (!FcDirCacheUnlink (dir, config))
                     ret++;