Opencv for ue5 build errors 'GNUC'


I have used opencv in ue4.26
but it doesn’t work in ue5
and get this error. How to fix it?
|Error|C4668|‘GNUC’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’|