bl/utils.h
changeset 5 f600b0d1fc5d
parent 0 c2f4c0285180
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bl/utils.h	Fri Jan 27 10:30:16 2012 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +#ifndef BL_UTIL_H
     1.5 +#define BL_UTIL_H
     1.6 +
     1.7 +#ifdef WIN32
     1.8 +#define BL_DIR_SEPARATOR '\\'
     1.9 +#define BL_DIR_SEPARATOR_S "\\"
    1.10 +#define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR || (c)=='/')
    1.11 +#else
    1.12 +#define BL_DIR_SEPARATOR '/'
    1.13 +#define BL_DIR_SEPARATOR_S "/"
    1.14 +#define BL_IS_DIR_SEPARATOR(c) ((c)==BL_DIR_SEPARATOR)
    1.15 +#endif
    1.16 +
    1.17 +char *path_get_basename(const char *filename);
    1.18 +
    1.19 +#endif /* BL_UTIL_H */