From 5e1c39e140f49e93501f8af95032574c77fc4596 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Mon, 16 Jun 2025 13:48:53 +0200 Subject: [PATCH] =?UTF-8?q?-=20[NEW]=20Ara=20tamb=C3=A9=20compila=20arxius?= =?UTF-8?q?=20*.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 68a2d20..587f395 100644 --- a/main.cpp +++ b/main.cpp @@ -274,7 +274,8 @@ int main(int argc, char *argv[]) for (const auto & entry : std::filesystem::directory_iterator(path)) { std::string source_file = entry.path(); - if (getFileExtension(source_file)=="cpp") + std::string file_extension = getFileExtension(source_file); + if (file_extension=="cpp" || file_extension=="c") { MaybeRecompile(source_file); }