1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gclib/utils.h Wed Jan 25 19:33:43 2012 +0000
1.3 @@ -0,0 +1,16 @@
1.4 +#ifndef GC_UTIL_H
1.5 +#define GC_UTIL_H
1.6 +
1.7 +#ifdef WIN32
1.8 +#define GC_DIR_SEPARATOR '\\'
1.9 +#define GC_DIR_SEPARATOR_S "\\"
1.10 +#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR || (c)=='/')
1.11 +#else
1.12 +#define GC_DIR_SEPARATOR '/'
1.13 +#define GC_DIR_SEPARATOR_S "/"
1.14 +#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR)
1.15 +#endif
1.16 +
1.17 +char *path_get_basename(const char *filename);
1.18 +
1.19 +#endif /* GC_UTIL_H */