1 2 3 4 5 6 7 8 9 10
#ifdef __cplusplus extern "C" { #endif extern char* foo; extern int SomeFunctionInFoo(); #ifdef __cplusplus } #endif