#include #ifndef __cplusplus #error This file mustn't be compiled as C #endif void hello_c() { std::cout << "Hello from C++ in a .c!" << std::endl; }