dxx-rebirth/common
Kp 655d0e6714 Remove unused loadgl typedefs
Per request from Mako88, remove unused loadgl typedefs.  loadgl.h
was imported from elsewhere and defines typedefs 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 by removing all unused gl typedefs.

    # 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.
    git grep 'typedef .*OGLFUNCCALL \*' common/include/loadgl.h | sed -e 's/^.*OGLFUNCCALL \*//' -e 's/).*$//' | while read f; do
        if ! git grep -q 'DEFVAR\s'"$f"'\>' -- common/include/loadgl.h; then
            echo "/\\<$f\\>/d"
        fi
    done > unused.sed
    sed -i common/include/loadgl.h -f unused.sed
2016-08-22 00:31:15 +00:00
..
2d Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
3d Propagate MAX_INSTANCE_DEPTH 2016-07-10 04:11:34 +00:00
arch Remove char[N] overload for PHYSFSX_getRealPath 2016-08-06 19:55:25 +00:00
editor Remove unnecessary gr_setcolor calls 2016-02-12 04:02:28 +00:00
include Remove unused loadgl typedefs 2016-08-22 00:31:15 +00:00
main Switch valptridx error reporting size to DXX_PRI_size_type 2016-08-20 22:28:43 +00:00
maths Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
mem Rewrite declarations of ubyte * to standard uint8_t * 2016-07-14 01:59:02 +00:00
misc Move HMP->MIDI magic numbers into magic_header[] 2016-08-19 03:41:40 +00:00
texmap Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
ui Flatten some ui type hierarchy 2016-08-06 19:55:24 +00:00