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