WINCE: cleanup & fix missing.cpp
|Reported by:||fingolfin||Owned by:||SF/knakos|
I sent the attached patch some time ago to Kostas, but I am now resubmitting it as a patch, to make sure it won't get forgotten / lost.
Essentially, the WinCE backend contains a file "backends/platform/wince/missing/missing.cpp" which implements various POSIX / Std C functions which are missing in certain dev environments or WinCE. The attached patch does various things: * Removes some unused stuff * Fixes various buggy functions * Replaces certain bad implementations with proper ones, taken from various sources (glibc, my own code, etc.). E.g. bsearch now actually does a "binary search" and not a linear one
Ticket imported from: #1882942. Ticket imported from: patches/896.