Here's a subset of a patch I did for codeblocks to get 2.9 to work, they
are maintaining 2.6 support as primary. These constants were everywhere
so I added the below code to the application common header.
See wx/filedlg.h for the changes.
#if wxCHECK_VERSION(2, 8, 0) && !(WXWIN_COMPATIBILITY_2_6)
// Note the following defines need removed
// when CodeBlocks support for wxWidgets 2.6 is dropped
#define wxOPEN wxFD_OPEN
#define wxFILE_MUST_EXIST wxFD_FILE_MUST_EXIST
#define wxMULTIPLE wxFD_MULTIPLE
#define wxSAVE wxFD_SAVE
#define wxOVERWRITE_PROMPT wxFD_OVERWRITE_PROMPT
#define wxCHANGE_DIR wxFD_CHANGE_DIR
#endif