git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21021
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
};
// Comparison routine for bsearch into an int* array of pagebreaks.
};
// Comparison routine for bsearch into an int* array of pagebreaks.
-static int integer_compare(void const* i0, void const* i1)
+extern "C" int wxCMPFUNC_CONV wxInteger_compare(void const* i0, void const* i1)
{
return *(int*)i0 - *(int*)i1;
}
{
return *(int*)i0 - *(int*)i1;
}
// zero plus one element for each page.
int* where = (int*) bsearch(&total_height, known_pagebreaks,
1 + number_of_pages, sizeof(int),
// zero plus one element for each page.
int* where = (int*) bsearch(&total_height, known_pagebreaks,
1 + number_of_pages, sizeof(int),
// Add a pagebreak only if there isn't one already set here.
if(NULL != where)
{
// Add a pagebreak only if there isn't one already set here.
if(NULL != where)
{