THF_FUNC not defined