summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-10 01:42:42 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-10 01:42:42 +0000
commitd26523e08964277881c3cdf34dafdc046cf3321d (patch)
tree5377c041a44ae9fc52ade9620e58f351a04a9b05 /src/common/compat.h
parenteab048b7f35adc77f0316f72e981cab571233f81 (diff)
downloadtor-d26523e08964277881c3cdf34dafdc046cf3321d.tar.gz
tor-d26523e08964277881c3cdf34dafdc046cf3321d.zip
Use tor_listdir in test.c instead of duplicating ode.
svn:r4981
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 30db44d8ce..686a9345b1 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -128,6 +128,12 @@ struct tm *tor_gmtime_r(const time_t *timep, struct tm *result);
/* ===== File compatibility */
int replace_file(const char *from, const char *to);
+#ifdef MS_WINDOWS
+#define PATH_SEPARATOR "\\"
+#else
+#define PATH_SEPARATOR "/"
+#endif
+
/* ===== Net compatibility */
#ifdef MS_WINDOWS
/** On windows, you have to call close() on fds returned by open(),