From 8c1c11d689ddb6ef442ad2ae4e021f76d18fe219 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 29 Nov 2012 07:53:21 +0000 Subject: [PATCH] declare wxQsort in vector.h as well as utils.h to work around circular header dependency mess git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/vector.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/wx/vector.h b/include/wx/vector.h index f2f337fae9..b56b42e52d 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -36,6 +36,15 @@ inline void wxVectorSort(wxVector& v) #include // for placement new #include "wx/afterstd.h" +// wxQsort is declared in wx/utils.h, but can't include that file here, +// it indirectly includes this file. Just lovely... +typedef int (*wxSortCallback)(const void* pItem1, + const void* pItem2, + const void* user_data); +WXDLLIMPEXP_BASE void wxQsort(void* pbase, size_t total_elems, + size_t size, wxSortCallback cmp, + const void* user_data); + namespace wxPrivate { -- 2.47.2