From f5c9a8080f0932335457fe5cb0dff38c2d491cb5 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 12 Jun 2014 19:03:18 +0200 Subject: Mingw compatibility fixes by trialuser --- src/rccxml.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rccxml.c') diff --git a/src/rccxml.c b/src/rccxml.c index 39992f2..e79067f 100644 --- a/src/rccxml.c +++ b/src/rccxml.c @@ -340,7 +340,11 @@ int rccSave(rcc_context ctx, const char *name) { if (!config) return -1; sprintf(config,"%s/.rcc/",rcc_home_dir); +#ifdef _WIN32 + mkdir(config); +#else mkdir(config, 00755); +#endif sprintf(config,"%s/.rcc/%s.xml",rcc_home_dir,name); fd = open(config, O_CREAT|O_RDWR,00644); -- cgit v1.2.3