CompilerId: Restore support for classic C by avoiding C++ style comments
C++ style comments were added by !6177 (merged), but they may not be supported by the default mode of some C compilers. Use C-style comments instead. For consistency, do this for all languages.
Fixes: #22942 (closed)
Backport: release