Remove inline from ctypes code for clang compatibility