summaryrefslogtreecommitdiff
path: root/prism.h
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-03-19 20:22:19 +0000
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-03-19 20:22:19 +0000
commit13de062ee44c87fd3792189f4cd9466ca20281c9 (patch)
tree71d7915a125dedfc8417a552ceba560ba6c0edde /prism.h
parent9155a365e1e0a7e9fec47447f86af09117b30edb (diff)
downloadprism-13de062ee44c87fd3792189f4cd9466ca20281c9.tar.gz
prism-13de062ee44c87fd3792189f4cd9466ca20281c9.zip
Fixed some directory separator issues such that prism now works on Linux.
Diffstat (limited to 'prism.h')
-rw-r--r--prism.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/prism.h b/prism.h
index 4d26b99..85457f4 100644
--- a/prism.h
+++ b/prism.h
@@ -16,6 +16,19 @@
#define PRET_GZFAILED -8
#define PRET_NOREVISION -10
+#if defined(MSDOS) || defined(WIN32) || defined(atarist)
#define DIR_SEP "\\"
+#elif defined(__unix) || defined(__linux) || defined(unix)
+#define DIR_SEP "/"
+
+#elif defined(__riscos) || defined(__riscos__) || defined(vms)
+#define DIR_SEP "."
+
+#else
+#define DIR_SEP "/"
+#warning "Making assumptions about directory separator '/'"
+
+#endif
+
#endif /* _PRISM_HDRS_ */