#ifdef __cplusplus extern "C" { #endif extern char* foo; extern int SomeFunctionInFoo(int i); #ifdef __cplusplus } #endif