blob: a9d554853a7f7dbac880709feb37d137d7db02ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- gcc-3.4.6/include/filenames.h 2003-07-01 22:29:16.000000000 +0200
+++ include/filenames.h 2013-05-19 20:23:32.000000000 +0200
@@ -43,7 +43,11 @@
#else /* not DOSish */
#define IS_DIR_SEPARATOR(c) ((c) == '/')
+#if !defined(__amigaos__)
#define IS_ABSOLUTE_PATH(f) (IS_DIR_SEPARATOR((f)[0]))
+#else
+#define IS_ABSOLUTE_PATH(f) (IS_DIR_SEPARATOR((f)[0]) || strchr((f), VOL_SEPARATOR))
+#endif
#define FILENAME_CMP(s1, s2) strcmp(s1, s2)
#endif /* not DOSish */
|