gclib/utils.h
changeset 0 c2f4c0285180
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gclib/utils.h	Tue Jan 24 23:54:05 2012 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +#ifndef GC_UTIL_H
     1.5 +#define GC_UTIL_H
     1.6 +
     1.7 +#ifdef WIN32
     1.8 +#define GC_DIR_SEPARATOR '\\'
     1.9 +#define GC_DIR_SEPARATOR_S "\\"
    1.10 +#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR || (c)=='/')
    1.11 +#else
    1.12 +#define GC_DIR_SEPARATOR '/'
    1.13 +#define GC_DIR_SEPARATOR_S "/"
    1.14 +#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR)
    1.15 +#endif
    1.16 +
    1.17 +char *path_get_basename(const char *filename);
    1.18 +
    1.19 +#endif /* GC_UTIL_H */