From 59fcaf5c03bfba5723441ebd2d4e5e3a7531c80d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 25 Jan 2000 00:17:01 +0000 Subject: On Win32, when splitting file names into directory and last component, search for '\' rather than '/'. svn path=/trunk/; revision=1545 --- globals.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'globals.h') diff --git a/globals.h b/globals.h index 0c0f4e7edb..c8766d9388 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 @@ -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; -- cgit v1.2.1