Skip to content

Commit

Permalink
[CBRD-24659] [10.2] redefine absolute path for Windows (#4117)
Browse files Browse the repository at this point in the history
[10.2] redefine absolute path for Windows
  • Loading branch information
kisoo-han committed Feb 17, 2023
1 parent c7a6bbb commit ebe9b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/base/porting.h
Expand Up @@ -349,7 +349,11 @@ check_is_array (const T & a)
#endif /* WINDOWS */
#define PATH_CURRENT '.'

#if defined (WINDOWS)
#define IS_PATH_SEPARATOR(c) ((c) == PATH_SEPARATOR || (c) == '/')
#else
#define IS_PATH_SEPARATOR(c) ((c) == PATH_SEPARATOR)
#endif

#if defined (WINDOWS)
#define IS_ABS_PATH(p) IS_PATH_SEPARATOR((p)[0]) \
Expand Down

0 comments on commit ebe9b52

Please sign in to comment.