Fix build issue on Win32.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/148
This commit is contained in:
Akira TAGOH 2019-03-19 17:57:09 +09:00
parent 3eca37c1e5
commit 9b0c093a6a
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@
# define FC_DIR_SEPARATOR_S "/"
#endif
#ifdef _WIN32
#include <direct.h>
#define mkdir(path,mode) _mkdir(path)
#endif
#ifdef HAVE_MKDTEMP
#define fc_mkdtemp mkdtemp
#else