SQUASHME: add extern "C"