~lattis/muon#74: 
path.c: on Windows, separator is either '/' or '\\'

in path.c, there are several cases where a char is compared to the path separator '/'. But on Windows, path separator is either '/' or '\\'. One solution : a macro in path.h, like

#ifdef _WIN32
#define IS_PATH_SEP(c) (((c) == '\\') || ((c) == '/'))
#else
#define IS_PATH_SEP(c) ((c) == '/')
#endif

and use it each time there is a == PATH_SEP

Status
RESOLVED CLOSED
Submitter
~vtorri
Assigned to
No-one
Submitted
8 months ago
Updated
3 months ago
Labels
No labels applied.

~vtorri 3 months ago

this is fixed in a recent commit: we use now '/' as path separator on WIndows

~lattis REPORTED CLOSED 3 months ago

Register here or Log in to comment, or comment via email.