summaryrefslogtreecommitdiff
path: root/gprof/search_list.h
diff options
context:
space:
mode:
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 54dfe3590f..6f5acae934 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;