aboutsummaryrefslogtreecommitdiffstats
path: root/globals.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-25 00:17:01 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-25 00:17:01 +0000
commit59fcaf5c03bfba5723441ebd2d4e5e3a7531c80d (patch)
treed43faede0037f3d8c062d578e9bb196a2928415b /globals.h
parentde51ae65a6c060f2e487f9c185e1cedecf01ad80 (diff)
On Win32, when splitting file names into directory and last component,
search for '\' rather than '/'. svn path=/trunk/; revision=1545
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/globals.h b/globals.h
index 0c0f4e7..c8766d9 100644
--- a/globals.h
+++ b/globals.h
@@ -1,7 +1,7 @@
/* globals.h
* Global defines, etc.
*
- * $Id: globals.h,v 1.15 2000/01/24 04:44:35 guy Exp $
+ * $Id: globals.h,v 1.16 2000/01/25 00:17:01 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -74,6 +74,13 @@
# define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
+/* Pathname separator. */
+#ifdef WIN32
+#define PATH_SEPARATOR '\\'
+#else
+#define PATH_SEPARATOR '/'
+#endif
+
extern FILE *data_out_file;
extern packet_info pi;
extern capture_file cf;