diff options
| author | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2014-03-19 20:22:19 +0000 |
|---|---|---|
| committer | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2014-03-19 20:22:19 +0000 |
| commit | 13de062ee44c87fd3792189f4cd9466ca20281c9 (patch) | |
| tree | 71d7915a125dedfc8417a552ceba560ba6c0edde /prism.h | |
| parent | 9155a365e1e0a7e9fec47447f86af09117b30edb (diff) | |
| download | prism-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.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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_ */
|
