#ifdef __cplusplus \n extern "C"{

書かれ方が好きなので忘れないうちにめもめも。
http://tanakan2-web.hp.infoseek.co.jp/program/c/text000.html

#ifdef __cplusplus
extern "C"{
#endif

関数名

#ifdef __cplusplus
}
#endif
で、囲んでおく。

ついでだから、片方のifdefの中にCLASSの定義でも入れておく。とか考えたけど、可読性が落ちる。やめましょう。