Not particularly difficult. The file in question is panda/src/glstuff/glShaderContext_src.cxx although it has changed quite a bit, so the surrounding code will look different.
Here are the relevant commits:
github.com/panda3d/panda3d/comm … ec00789a5a
github.com/panda3d/panda3d/comm … 3fbf789e42