aboutsummaryrefslogtreecommitdiff
path: root/fontconfig
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig')
-rw-r--r--fontconfig/config.h5
-rw-r--r--fontconfig/src/fccompat.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/fontconfig/config.h b/fontconfig/config.h
index 593744bd3..441734857 100644
--- a/fontconfig/config.h
+++ b/fontconfig/config.h
@@ -10,4 +10,9 @@
#define HAVE__MKTEMP_S 1
#define FC_CACHEDIR getenv("TEMP")
#define FC_DEFAULT_FONTS "fonts"
+#ifdef _WIN64
+#define SIZEOF_VOID_P 8
+#else
+#define SIZEOF_VOID_P 4
+#endif
diff --git a/fontconfig/src/fccompat.c b/fontconfig/src/fccompat.c
index d4f88c83f..ce4af5d0d 100644
--- a/fontconfig/src/fccompat.c
+++ b/fontconfig/src/fccompat.c
@@ -221,7 +221,7 @@ FcRandom(void)
}
#ifdef _WIN32
-#include <direct.h>
+#undef mkdir
#define mkdir(path,mode) _mkdir(path)
#endif