summaryrefslogtreecommitdiff
path: root/db.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2015-10-19 10:17:12 -0400
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2015-10-19 10:17:12 -0400
commit64296f5eaa638a0625c0a0ade3dac4d710334d48 (patch)
tree81863e3f3d4c3c2d2f09c60bd8b3574ea253ff93 /db.c
parent13de062ee44c87fd3792189f4cd9466ca20281c9 (diff)
downloadprism-64296f5eaa638a0625c0a0ade3dac4d710334d48.tar.gz
prism-64296f5eaa638a0625c0a0ade3dac4d710334d48.zip
Fixed hash routines to use 'unsigned char' for reliability under all compilers. Fixed preprocessor macro MKDIR to work in MinGW32.HEADmaster
Diffstat (limited to 'db.c')
-rw-r--r--db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.c b/db.c
index c319eb4..5006bf2 100644
--- a/db.c
+++ b/db.c
@@ -9,7 +9,7 @@
#include <sys/stat.h>
#include <errno.h>
-#ifdef __GNUC__
+#if (defined(__GNUC__) || defined(__UNIX__)) && !defined(__WIN32__)
#define MKDIR(x) mkdir(x, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
#else
#include <direct.h>