Fix function redefinition on arm-none-eabi compilers