diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2014-06-12 19:03:18 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2014-06-12 19:03:18 +0200 |
commit | f5c9a8080f0932335457fe5cb0dff38c2d491cb5 (patch) | |
tree | 26ec33246b846a54a6a52747519ca80c3c1000b7 /src/librcc.c | |
parent | 89f93872d8e024c761cc55335518f7d48d414fdb (diff) | |
download | librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.gz librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.bz2 librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.xz librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.zip |
Mingw compatibility fixes by trialuser
Diffstat (limited to 'src/librcc.c')
-rw-r--r-- | src/librcc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librcc.c b/src/librcc.c index b11c2ee..0fb9211 100644 --- a/src/librcc.c +++ b/src/librcc.c @@ -347,10 +347,18 @@ int rccInitDb4(rcc_context ctx, const char *name, rcc_db4_flags flags) { if (!dbname) return -1; sprintf(dbname,"%s/.rcc/",rcc_home_dir); +#ifdef _WIN32 + mkdir(dbname); +#else mkdir(dbname, 00755); +#endif sprintf(dbname,"%s/.rcc/%s.db/",rcc_home_dir,name); +#ifdef _WIN32 + mkdir(dbname); +#else mkdir(dbname, 00755); +#endif ctx->db4ctx = rccDb4CreateContext(dbname, flags); free(dbname); |