From 0e3c1dc33e609f4ab194375cde77dafefa5d30b1 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 18 Dec 2009 04:58:20 +0000 Subject: [PATCH] - Add a swap overload to make GCC happy. SVN r2029 (trunk) --- src/r_things.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/r_things.cpp b/src/r_things.cpp index 869d73a6a..a3a466b4e 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -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;