On Tue, Feb 17, 2004 at 11:05:03AM +0100, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
Should be possible if you just do
extern "C" { #include "whatever.h" }
Not sure... Some headers (due to structure) cannot be "wrapped" like this, unfortunately (especially if some of them already use extern "C" - and this is true because system and standard libraries do).
Make sure to not throw any C++ exceptions though.
It won't harm (unless incorrectly handled) - C++ runtime is active only during "lifetime" of C++ code. At least, I've experience mixing C/C++ and there are no problems with exceptions...
Regards, /Al