From c15b8bfd6fbc605fcf5f77faf713e6cebe3f456e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 13 Sep 2005 14:35:50 +0000 Subject: [PATCH] qsort() should be passedonly extern C functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/string.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/string.cpp b/src/common/string.cpp index 9e72b8aa59..ffae5b4e12 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -2497,7 +2497,11 @@ void wxArrayString::Sort(CompareFunction compareFunction) END_SORT(); } -typedef int (wxC_CALLING_CONV * wxStringCompareFn)(const void *first, const void *second); +extern "C" +{ + typedef int (wxC_CALLING_CONV * wxStringCompareFn)(const void *first, + const void *second); +} void wxArrayString::Sort(CompareFunction2 compareFunction) { -- 2.45.2