#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 */