diff --git a/include/wx/mac/carbon/config_xcode.h b/include/wx/mac/carbon/config_xcode.h index 04a1cac042..0dc2440fbf 100644 --- a/include/wx/mac/carbon/config_xcode.h +++ b/include/wx/mac/carbon/config_xcode.h @@ -98,7 +98,11 @@ #define HAVE_UNISTD_H 1 #define HAVE_WCHAR_H 1 #define HAVE_ICONV 1 -#define ICONV_CONST +#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 +#define ICONV_CONST const +#else +#define ICONV_CONST +#endif #define HAVE_LANGINFO_H 1 #define HAVE_WCSRTOMBS 1 #define HAVE_FPUTWS 1 diff --git a/include/wx/platform.h b/include/wx/platform.h index 324a77e876..2f5e5318fa 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -33,6 +33,7 @@ # if defined(__MACH__) # define __WXMAC_OSX__ # define __WXMAC_CARBON__ +# include # ifdef __WXMAC_XCODE__ # include # include "wx/mac/carbon/config_xcode.h"