mirror of
https://github.com/likle/cwalk.git
synced 2026-10-28 09:44:01 +00:00
C++ compatibility - eliminated usage of C99 designated initializers
This commit is contained in:
1 parent
356db8cd03
commit
954f24cc59
1 file changed
+4
-2
+4
-2
@@ -21,8 +21,10 @@ static enum cwk_path_style path_style = CWK_STYLE_UNIX;
|
||||
* multiple separators, but it generally outputs just a backslash. The output
|
||||
* will always use the first character for the output.
|
||||
*/
|
||||
static const char *separators[] = {[CWK_STYLE_WINDOWS] = "\\/",
|
||||
[CWK_STYLE_UNIX] = "/"};
|
||||
static const char *separators[] = {
|
||||
"\\/", // CWK_STYLE_WINDOWS
|
||||
"/" // CWK_STYLE_UNIX
|
||||
};
|
||||
|
||||
/**
|
||||
* A joined path represents multiple path strings which are concatenated, but
|
||||
|
||||
Reference in new issue
Block a user