diff -r c2f4c0285180 -r f600b0d1fc5d bl/utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bl/utils.h Fri Jan 27 10:30:16 2012 +0000 @@ -0,0 +1,16 @@ +#ifndef BL_UTIL_H +#define BL_UTIL_H + +#ifdef WIN32 +#define BL_DIR_SEPARATOR '\\' +#define BL_DIR_SEPARATOR_S "\\" +#define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR || (c)=='/') +#else +#define BL_DIR_SEPARATOR '/' +#define BL_DIR_SEPARATOR_S "/" +#define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR) +#endif + +char *path_get_basename(const char *filename); + +#endif /* BL_UTIL_H */