gclib/utils.h
author ali <ali@juiblex.co.uk>
Fri Jan 27 00:28:11 2012 +0000 (2012-01-27)
changeset 4 218904410231
permissions -rw-r--r--
Add workaround for missing -framework Carbon
     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 */