And wrap the implemtation in preprocessor checks. Should fix ticket #11282. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 9ec042c1aa)
9ec042c1aa