X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/deb63b954bbf5fd364bc4c6bbabf0e815a677d95..a92b0cfd2bd0bef75b43c071df0b0e028f360d8e:/src/os2/palette.cpp?ds=sidebyside diff --git a/src/os2/palette.cpp b/src/os2/palette.cpp index bf84af809f..bd592c42e0 100644 --- a/src/os2/palette.cpp +++ b/src/os2/palette.cpp @@ -14,13 +14,16 @@ #ifndef WX_PRECOMP #include +#include "wx/defs.h" #include "wx/setup.h" +#include "wx/string.h" +#include "wx/os2/private.h" #include "wx/palette.h" +#include "wx/app.h" #endif #define INCL_PM #define INCL_GPI -#include #include "assert.h" @@ -150,7 +153,8 @@ int wxPalette::GetPixel( // // Now loop through and find the matching entry // - for (int i = 0; i < ulNumEntries; i++) + int i; + for (i = 0; i < ulNumEntries; i++) { if (pualTable[i] == ulRGB) {