diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-01-25 00:17:01 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-01-25 00:17:01 +0000 |
commit | 59fcaf5c03bfba5723441ebd2d4e5e3a7531c80d (patch) | |
tree | d43faede0037f3d8c062d578e9bb196a2928415b /globals.h | |
parent | de51ae65a6c060f2e487f9c185e1cedecf01ad80 (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.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |