[Cegcc-devel] w32api: Fix GetCharWidth32 definition

2007-01-30 Thread Nuno Lucas
The GetCharWidth32 hasn't two variations on WinCE as it has on Windows (even if they are the same). This was discovered by simply noticing the import libraries already declare it as they should, only the declaration is wrong. This patch fixes this: --- w32api/include/wingdi.h 2007-01-26 23:

[Cegcc-devel] mingw32ce: Fix some math.h bad inlined functions

2007-01-30 Thread Nuno Lucas
Some functions in math.h (like rint), are inlined in the math.h header, but fail to compile with an error when used: [EMAIL PROTECTED]:~/prjs/wince/cegcc/test/math_h_header$ cat main.c #include int main( void ) { double i = rint( 3.14 ); return 0; } [EMAIL PROTECTED]:~/prjs/wince/cegcc

[Cegcc-devel] Fix definition for MsgWaitForMultipleObjects

2007-01-30 Thread Nuno Lucas
The current declaration for MsgWaitForMultipleObjects is the same as on standard windows, but on Windows CE it's a define wrapper for MsgWaitForMultiplesObjectsEx [1]. This patch fixes the winuser.h header: Index: winuser.h === --- w

[Cegcc-devel] Hack to build gdb on glibc 2.4 machines

2007-01-30 Thread Nuno Lucas
As I have writen before, I couldn't compile gdb on my home Kubuntu 6.10 machine. It was time to try again and found it would go without problems on the office Kubuntu 6.04. The difference is on the libc headers, because 6.04 uses libc 2.3.x and 6.10 uses libc 2.4.x. It turns out that the libc 2.3