Is the Header Included from extern “C” Compiled as C or C++?
It depends! If a C++ source file includes the header inside an extern "C"
section, the header is compiled as C++. If a C source file includes the header, the header is compiled as C. Hence, the header file should be both valid C and valid C++.