Because RIOT src will be compiled by CC so user's app in c++ need to use extern "C" when include c headers.