Per request from Mako88, remove unused loadgl indirections. loadgl.h was imported from elsewhere and defines indirections for many functions that Descent does not use. Some of these are guarded by WINVER conditionals and, in Mako88's unspecified environment, defining WINVER to expose these results in a build failure because the guarded typedef requires a type that is not defined by the environment. Compensate for that, and likely improve the generated code, by removing all unused gl symbols. # Save the results to a file, then run the file separately. This # avoids any chance that sed might try to edit the file while later # searches are still running. s=( `git ls-files '*.h' '*.cpp' | grep -v -F common/include/loadgl.h` ) git grep '#define w\?gl[A-Z]\w\+ dw\?gl' common/include/loadgl.h | gawk '{print $2;}' | while read f; do if ! git grep -q -l '\<d\?'"$f"'\>' -- "${s[@]}"; then echo "/\\<d\?$f\\>/d" fi done > unused.sed sed -i common/include/loadgl.h -f unused.sed |
||
---|---|---|
common | ||
contrib | ||
d1x-rebirth | ||
d2x-rebirth | ||
Documentation | ||
similar | ||
.gitignore | ||
COPYING.txt | ||
GPL-3.txt | ||
INSTALL.markdown | ||
SConstruct |