- Add a swap overload to make GCC happy.

SVN r2029 (trunk)
This commit is contained in:
Randy Heit 2009-12-18 04:58:20 +00:00
parent f6428e1cbb
commit 0e3c1dc33e
1 changed files with 9 additions and 0 deletions

View File

@ -2020,6 +2020,15 @@ void R_SplitVisSprites ()
}
#endif
#ifdef __GNUC__
static void swap(vissprite_t *&a, vissprite_t *&b)
{
vissprite_t *t = a;
a = b;
b = t;
}
#endif
void R_SortVisSprites (bool (*compare)(vissprite_t *, vissprite_t *), size_t first)
{
int i;