Make WvStreams compile with gcc 4.4.
[wvstreams.git] / utils / wvsorter.cc
blob657bc52fc49fa563b7d98e585f9998639d136abe
1 /*
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4 *
5 * An iterator that can sort anything that has an Iter subclass with the
6 * right member functions.
7 *
8 * See wvsorter.h.
9 */
10 #include "wvsorter.h"
12 WvSorterBase::CompareFunc *WvSorterBase::actual_compare;
14 int WvSorterBase::magic_compare(const void *_a, const void *_b)
16 void *a = *(void **)_a, *b = *(void **)_b;
17 return actual_compare(a, b);