gclib/utils.h
author ali <ali@juiblex.co.uk>
Tue Jan 24 23:54:05 2012 +0000 (2012-01-24)
changeset 0 c2f4c0285180
permissions -rw-r--r--
Initial version
     1 #ifndef GC_UTIL_H
     2 #define GC_UTIL_H
     3 
     4 #ifdef WIN32
     5 #define GC_DIR_SEPARATOR '\\'
     6 #define GC_DIR_SEPARATOR_S "\\"
     7 #define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR || (c)=='/')
     8 #else
     9 #define GC_DIR_SEPARATOR '/'
    10 #define GC_DIR_SEPARATOR_S "/"
    11 #define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR)
    12 #endif
    13 
    14 char *path_get_basename(const char *filename);
    15 
    16 #endif /* GC_UTIL_H */