#   include <sys/types.h>
 #endif
 
-#ifndef __WXWINCE__
 #include <regex.h>
-#endif
-
 #include "wx/regex.h"
 
-#if wxUSE_UNICODE
-#   if !defined(wxUSE_BUILTIN_REGEX)
-#       error "Unicode not supported with system regex, please reconfigure with --with-regex=builtin"
-#   endif
-#endif
-
 // ----------------------------------------------------------------------------
 // private classes
 // ----------------------------------------------------------------------------