don't use min() macro in wxQsort() which conflicts with the one from windows.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
11fe6505b8
commit
e71bf8b256
@ -870,12 +870,12 @@ void wxQsort(void *const pbase, size_t total_elems,
|
||||
of the array to sort, and END_PTR points at the very last element in
|
||||
the array (*not* one beyond it!). */
|
||||
|
||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||
|
||||
{
|
||||
char *const end_ptr = &base_ptr[size * (total_elems - 1)];
|
||||
char *tmp_ptr = base_ptr;
|
||||
char *thresh = min(end_ptr, base_ptr + max_thresh);
|
||||
char *thresh = base_ptr + max_thresh;
|
||||
if ( thresh > end_ptr )
|
||||
thresh = end_ptr;
|
||||
register char *run_ptr;
|
||||
|
||||
/* Find smallest element in first threshold and place it at the
|
||||
|
Loading…
Reference in New Issue
Block a user