From f9ba645e5d7fe4d3ac415ed3a56e0ce4db623ae5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 9 Jun 2003 17:06:40 +0000 Subject: [PATCH] compilation fix for VisualAge C++ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/m_layout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index abd44132e9..78424023c8 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -84,7 +84,7 @@ private: }; // 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; } @@ -119,7 +119,7 @@ bool wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak, int* known_pagebreaks, // zero plus one element for each page. int* where = (int*) bsearch(&total_height, known_pagebreaks, 1 + number_of_pages, sizeof(int), - integer_compare); + wxInteger_compare); // Add a pagebreak only if there isn't one already set here. if(NULL != where) { -- 2.45.2