mirror of https://git.kore.io/kore.git
Include .cpp files when building.
This probably isn't an ideal way to add support for also compiling C++ in a project, but for now it works for my needs.
This commit is contained in:
parent
b234b7ed65
commit
6e52c31d59
|
@ -690,8 +690,9 @@ cli_register_cfile(char *fpath, struct dirent *dp)
|
|||
struct stat st;
|
||||
char *ext, *opath;
|
||||
|
||||
if ((ext = strrchr(fpath, '.')) == NULL || strcmp(ext, ".c"))
|
||||
if ((ext = strrchr(fpath, '.')) == NULL || !(!strcmp(ext, ".c") || !strcmp(ext, ".cpp"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (stat(fpath, &st) == -1)
|
||||
cli_fatal("stat(%s): %s", fpath, errno_s);
|
||||
|
|
Loading…
Reference in New Issue