C++ compatibility - eliminated usage of C99 designated initializers

This commit is contained in:
dkowl authored and likle committed 2020-01-02 12:01:04 +01:00
1 parent 356db8cd03
commit 954f24cc59
1 file changed
+4 -2
+4 -2
View File
@@ -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