Remove Windows CE support
Windows CE doesn't seem to be supported by Microsoft any longer. Last CE release was in early 2013 and the PocketPC and Smartphone targets supported by wxWidgets are long gone. The build files where already removed in an earlier cleanup this commit removes all files, every #ifdef and all documentation regarding the Windows CE support. Closes https://github.com/wxWidgets/wxWidgets/pull/81
This commit is contained in:
committed by
Vadim Zeitlin
parent
6fbc2bd0b7
commit
8282c1be0f
@@ -29,9 +29,7 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#ifndef __WXWINCE__
|
||||
#include <errno.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -1671,15 +1669,9 @@ int wxString::Find(wxUniChar ch, bool bFromEnd) const
|
||||
// it out. Note that number extraction works correctly on UTF-8 strings, so
|
||||
// we can use wxStringCharType and wx_str() for maximum efficiency.
|
||||
|
||||
#ifndef __WXWINCE__
|
||||
#define DO_IF_NOT_WINCE(x) x
|
||||
#else
|
||||
#define DO_IF_NOT_WINCE(x)
|
||||
#endif
|
||||
|
||||
#define WX_STRING_TO_X_TYPE_START \
|
||||
wxCHECK_MSG( pVal, false, wxT("NULL output pointer") ); \
|
||||
DO_IF_NOT_WINCE( errno = 0; ) \
|
||||
errno = 0; \
|
||||
const wxStringCharType *start = wx_str(); \
|
||||
wxStringCharType *end;
|
||||
|
||||
@@ -1687,7 +1679,7 @@ int wxString::Find(wxUniChar ch, bool bFromEnd) const
|
||||
// nothing could be parsed but we do modify it and return false then if we did
|
||||
// parse something successfully but not the entire string
|
||||
#define WX_STRING_TO_X_TYPE_END \
|
||||
if ( end == start DO_IF_NOT_WINCE(|| errno == ERANGE) ) \
|
||||
if ( end == start || errno == ERANGE ) \
|
||||
return false; \
|
||||
*pVal = val; \
|
||||
return !*end;
|
||||
@@ -2058,10 +2050,8 @@ static int DoStringPrintfV(wxString& str,
|
||||
va_list argptrcopy;
|
||||
wxVaCopy(argptrcopy, argptr);
|
||||
|
||||
#ifndef __WXWINCE__
|
||||
// Set errno to 0 to make it determinate if wxVsnprintf fails to set it.
|
||||
errno = 0;
|
||||
#endif
|
||||
int len = wxVsnprintf(buf, size, format, argptrcopy);
|
||||
va_end(argptrcopy);
|
||||
|
||||
@@ -2091,13 +2081,11 @@ static int DoStringPrintfV(wxString& str,
|
||||
// assume it only returns error if there is not enough space, but
|
||||
// as we don't know how much we need, double the current size of
|
||||
// the buffer
|
||||
#ifndef __WXWINCE__
|
||||
if( (errno == EILSEQ) || (errno == EINVAL) )
|
||||
// If errno was set to one of the two well-known hard errors
|
||||
// then fail immediately to avoid an infinite loop.
|
||||
return -1;
|
||||
else
|
||||
#endif // __WXWINCE__
|
||||
// still not enough, as we don't know how much we need, double the
|
||||
// current size of the buffer
|
||||
size *= 2;
|
||||
|
||||
Reference in New Issue
Block a user