please, use `ippiGetBorderType` from `modules/core/include/opencv2/core/private.hpp`