From: Vadim Zeitlin Date: Sat, 12 Apr 2003 00:22:45 +0000 (+0000) Subject: Unixware compilation fix (#undef index) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/66f21994495139b10fa364a0596784f8fe764250 Unixware compilation fix (#undef index) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/image.h b/include/wx/image.h index e56104f841..bc19ddd607 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -29,6 +29,10 @@ #if wxUSE_IMAGE +// on some systems (Unixware 7.x) index is defined as a macro in the headers +// which breaks the compilation below +#undef index + #define wxIMAGE_OPTION_FILENAME wxString(_T("FileName")) //----------------------------------------------------------------------------- @@ -93,7 +97,7 @@ private: class WXDLLEXPORT wxImageHistogramEntry { public: - wxImageHistogramEntry() : index(0), value(0) {} + wxImageHistogramEntry() { index = value = 0; } unsigned long index; unsigned long value; };