Revert "fix compile error related to function pointer types"

This reverts commit 9ccccfbc49efca0ea5677c7f93e0fe7f892c5f39.