clang workaround to compile C99 extern inline func