Code that compiled in CUDA 9.2 failed to compile in CUDA 10.2

I have an old code that work fine in cuda 9.2 but when in switch to 10.2 I get a lot of
“error c2894: templates cannot be declared to have ‘C’ linkage” in compilation time that referred to “channel_description.h” in the cuda directory.
I read that its because I have an extern "c" included templates function inside, but still its work well with cuda 9.2.
Any suggestions?

GPU - Quadro M2000
OS - Windows 7
CUDA - 10.2/9.2