gclib/utils.h
author ali <ali@juiblex.co.uk>
Thu Jan 26 23:35:52 2012 +0000 (2012-01-26)
changeset 3 ec364358631b
permissions -rw-r--r--
Non-win32 platforms might need mkstemp too
     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 */