I have a couple of files written in C, and I want them to be C++-compatible, so for my C headers I use;
#ifdef __cplusplus
extern "C" {
#endif
at the beginning of the file and of course
#ifdef __cplusplus
}
#endif
...at the end. But it seems to create problems with the 'inline' keyword. My solution is to simply remove the inline keyword for C++, but I guess it could have a bad effect on C++ programs (these functions are called gazillions of times).
Is there a better solution ?