author | ali <ali@juiblex.co.uk> |
Wed Jan 25 19:33:43 2012 +0000 (2012-01-25) | |
changeset 2 | cbd63f7ba40f |
permissions | -rw-r--r-- |
1 #ifndef GC_UTIL_H
2 #define GC_UTIL_H
4 #ifdef WIN32
5 #define GC_DIR_SEPARATOR '\\'
6 #define GC_DIR_SEPARATOR_S "\\"
7 #define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR || (c)=='/')
8 #else
9 #define GC_DIR_SEPARATOR '/'
10 #define GC_DIR_SEPARATOR_S "/"
11 #define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR)
12 #endif
14 char *path_get_basename(const char *filename);
16 #endif /* GC_UTIL_H */