diff --git a/include/wx/db.h b/include/wx/db.h index c624086c26..200fec58b4 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -75,15 +75,19 @@ #include #endif -#ifdef __UNIX__ -# ifndef strnicmp -# define strnicmp strncasecmp -# endif -# ifndef stricmp -# define stricmp strcasecmp -# endif -#else -# include +#if wxMAJOR_VERSION == 2 + #include "utils.h" +#else + #ifdef __UNIX__ + # ifndef strnicmp + # define strnicmp strncasecmp + # endif + # ifndef stricmp + # define stricmp strcasecmp + # endif + #else + # include + #endif #endif enum enumDummy {enumDum1};