- 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

View file

@ -2020,6 +2020,15 @@ void R_SplitVisSprites ()
} }
#endif #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) void R_SortVisSprites (bool (*compare)(vissprite_t *, vissprite_t *), size_t first)
{ {
int i; int i;