diff options
author | Patrick Lam <plam@MIT.EDU> | 2006-04-07 04:42:32 +0000 |
---|---|---|
committer | Patrick Lam <plam@MIT.EDU> | 2006-04-07 04:42:32 +0000 |
commit | d6217cc6bcce0768ce1e01c077e90967ff91db5a (patch) | |
tree | 3ba3a06df1daedfcbfe147af8dd93f00838c6de0 /fc-cache | |
parent | 3a342c5a6ca6c27fdddf0c669392b7ab1d6e3f7e (diff) |
Patrick Lam <plam@mit.edu>
Make fontconfig compile under MinGW:
1) remove unneeded #includes;
2) make use of mmap and sysconf conditional;
3) replace rand_r by srand/rand if needed;
4) use chsize instead of ftruncate; and
5) update libtool exports file
Diffstat (limited to 'fc-cache')
-rw-r--r-- | fc-cache/fc-cache.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index ba1ba2bb..ce6b567c 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -38,6 +38,13 @@ #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 |