diff -r 000000000000 -r cbd63f7ba40f gclib/utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gclib/utils.h Wed Jan 25 19:33:43 2012 +0000 @@ -0,0 +1,16 @@ +#ifndef GC_UTIL_H +#define GC_UTIL_H + +#ifdef WIN32 +#define GC_DIR_SEPARATOR '\\' +#define GC_DIR_SEPARATOR_S "\\" +#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR || (c)=='/') +#else +#define GC_DIR_SEPARATOR '/' +#define GC_DIR_SEPARATOR_S "/" +#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR) +#endif + +char *path_get_basename(const char *filename); + +#endif /* GC_UTIL_H */