Avoid the C++ mangling issue by moving the declaration into the extern C

Change-Id: Icbb30fc757908350c526d6e8cb40f1650a70b315