diff options
| author | ruki <[email protected]> | 2018-08-12 21:40:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-08-12 21:40:31 +0800 |
| commit | d1aec2b31dfe6baf881817da5a4fbb0db8d0e7ac (patch) | |
| tree | 0be7c9288536de3dae4ffe03b596d1af41c10ced /core | |
| parent | be6c4d881079de40454f7252fd78c54723cf2f13 (diff) | |
fix patch bug
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/tbox/src/tbox/platform/path.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/tbox/src/tbox/platform/path.c b/core/src/tbox/src/tbox/platform/path.c index 34c5af505..07d247810 100644 --- a/core/src/tbox/src/tbox/platform/path.c +++ b/core/src/tbox/src/tbox/platform/path.c @@ -49,7 +49,11 @@ #endif // is path separator? -#define tb_path_is_separator(c) ((c) == '/' || (c) == '\\') +#ifdef TB_CONFIG_OS_WINDOWS +# define tb_path_is_separator(c) ((c) == '/' || (c) == '\\') +#else +# define tb_path_is_separator(c) ((c) == '/') +#endif /* ////////////////////////////////////////////////////////////////////////////////////// * implementation |
