I had a quick look at those files and there is a bigger problem looming: those files were written for an old version of LAMMPS and would need to be adapted to cleanly compile with a current version of LAMMPS. So you either need to adapt them as needed or compile them with a version of LAMMPS they were developed for.
Yes, those will not compile with the current version of LAMMPS.
The LAMMPS version is stored in src/version.h, but not in individual files.
You can only see the difference when you look at them. E.g. There is no more function inumeric() in the Force class, it has been moved to the utils namespace.
There is not a single line and I don’t recall the differences and moreover I don’t know for which version of LAMMPS this compute was written for. The best option to figure out any differences would be to compare a similar file from the old LAMMPS version to the current version. Another option would be to ask the author(s) whether they plan to update it and submit it for inclusion into the LAMMPS distribution (that would, however, require additional changes, since the files also have code that is in contrast with our coding conventions).