Replace C code by C++.