summaryrefslogtreecommitdiff
path: root/gprof/search_list.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-26 13:11:57 +0000
committerAlan Modra <amodra@gmail.com>2000-05-26 13:11:57 +0000
commit5af11cab92a8d4ed9b0cd7a46f05cf02a8ba901e (patch)
tree43c01869523de4ad682493e6674e5e8a9fed1804 /gprof/search_list.h
parent010c70e10fb422ae6151a8808215a122f461fce8 (diff)
downloadbinutils-gdb-5af11cab92a8d4ed9b0cd7a46f05cf02a8ba901e.tar.gz
Eli Zaretskii's DOSish file name patches.
Diffstat (limited to 'gprof/search_list.h')
-rw-r--r--gprof/search_list.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gprof/search_list.h b/gprof/search_list.h
index 54dfe3590f7..6f5acae934f 100644
--- a/gprof/search_list.h
+++ b/gprof/search_list.h
@@ -1,6 +1,14 @@
#ifndef search_list_h
#define search_list_h
+/* Non-Posix systems use semi-colon as directory separator in lists,
+ since colon is part of drive letter spec. */
+#if defined (__MSDOS__) || defined (_WIN32)
+#define PATH_SEP_CHAR ';'
+#else
+#define PATH_SEP_CHAR ':'
+#endif
+
typedef struct search_list_elem
{
struct search_list_elem *next;