ali@5: #ifndef BL_UTIL_H ali@5: #define BL_UTIL_H ali@0: ali@0: #ifdef WIN32 ali@5: #define BL_DIR_SEPARATOR '\\' ali@5: #define BL_DIR_SEPARATOR_S "\\" ali@5: #define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR || (c)=='/') ali@0: #else ali@5: #define BL_DIR_SEPARATOR '/' ali@5: #define BL_DIR_SEPARATOR_S "/" ali@5: #define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR) ali@0: #endif ali@0: ali@0: char *path_get_basename(const char *filename); ali@0: ali@5: #endif /* BL_UTIL_H */