#ifdef __cplusplus extern "C" { #endif int foo(void); #ifdef __cplusplus } #endif