Go to file
Kp f50aef0241 Remove unused loadgl indirections
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
2016-08-20 22:28:44 +00:00
common Remove unused loadgl indirections 2016-08-20 22:28:44 +00:00
contrib Update Xcode project file listing (for editing purposes) 2016-03-06 13:05:37 +08:00
d1x-rebirth Switch ab_load to use inttypes format macros 2016-08-19 03:41:41 +00:00
d2x-rebirth Add helper macro to handle printf .* conversion for 32/64 2016-08-19 03:41:41 +00:00
Documentation Update documentation and test to exclude <gcc-4.9 2016-08-14 23:47:26 +00:00
similar Include inttypes.h in playsave.cpp 2016-08-20 22:28:43 +00:00
.gitignore ignore XCode user data 2014-12-06 22:43:12 -08:00
COPYING.txt corrected typo in COPYING.txt (it's to its) 2014-06-06 13:18:52 +02:00
GPL-3.txt
INSTALL.markdown Add basic instructions on building Rebirth 2015-09-26 21:17:14 +00:00
SConstruct Clean up SConstruct global namespace 2016-08-20 22:28:43 +00:00