Convert C99 code to C89
问题 How can I convert c99 source code automatically to c89? I want to compile c99 libraries with Visual C++, but MSVC only supports c89. Many changes are only syntactic, such as struct initializers, and you could write a tool to "de-c99" code automatically. Does this preprocessor exist? 回答1: Clang-based source-to-source translator: https://github.com/libav/c99-to-c89/ 回答2: The commercial Comeau C/C++ compiler can do this. Alternatively, use a proper C compiler (eg GCC or Clang via MinGW, Pelles C