X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e97a905185a72c04a7feb67c7885ab4412100ee..7802da36fa043e7fdc162a70e97821754a2f2f14:/include/wx/listbook.h diff --git a/include/wx/listbook.h b/include/wx/listbook.h index 57f24203dd..a8abcce052 100644 --- a/include/wx/listbook.h +++ b/include/wx/listbook.h @@ -124,8 +124,10 @@ private: // listbook event class and related stuff // ---------------------------------------------------------------------------- -// wxListbookEvent is obsolete and defined for compatibility only -typedef wxBookCtrlEvent wxListbookEvent; +// wxListbookEvent is obsolete and defined for compatibility only (notice that +// we use #define and not typedef to also keep compatibility with the existing +// code which forward declares it) +#define wxListbookEvent wxBookCtrlEvent typedef wxBookCtrlEventFunction wxListbookEventFunction; #define wxListbookEventHandler(func) wxBookCtrlEventHandler(func)