diff -r 000000000000 -r 218904410231 gclib/utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gclib/utils.h Fri Jan 27 00:28:11 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 */