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
ali@0
     1
#ifndef GC_UTIL_H
ali@0
     2
#define GC_UTIL_H
ali@0
     3
ali@0
     4
#ifdef WIN32
ali@0
     5
#define GC_DIR_SEPARATOR '\\'
ali@0
     6
#define GC_DIR_SEPARATOR_S "\\"
ali@0
     7
#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR || (c)=='/')
ali@0
     8
#else
ali@0
     9
#define GC_DIR_SEPARATOR '/'
ali@0
    10
#define GC_DIR_SEPARATOR_S "/"
ali@0
    11
#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR)
ali@0
    12
#endif
ali@0
    13
ali@0
    14
char *path_get_basename(const char *filename);
ali@0
    15
ali@0
    16
#endif /* GC_UTIL_H */