added #ifdef __cplusplus
Merge pull request #30 from kgrigsby59/master

Fix compile error