example1.h: #ifdef __cplusplus extern "C" { #endif int foo(int x); int bar(int x); #ifdef __cplusplus } #endif