src: fix duplicate definition warnings
The following warning appears during compilation, but there is no way to reproduce it, I try to fix it
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines