Danny Backx wrote:
Pedro,I need the patches below to get your sources to compile on Linux. Permission to commit ?
Ooops, local patch here. Thanks for trying it out. Attached is what I used. I realized we need a patch like this, because I used a MSVC generated project as a base for PipeLib, and I including stdio.h wasn't needed there. I looked at a few random MSDN docs of functions that should be stdio.h, and noticed that a few are documented to be declared on stdlib.h. Unfortunately, I can't find which now... Anyway, I think I've had to add stdio.h before to apps ported from MSVC, so I am pretty sure that a patch like the attached is close to correct. Any objections? Cheers, Pedro Alves
Index: stdio.h =================================================================== --- stdio.h (revision 932) +++ stdio.h (working copy) @@ -28,6 +28,12 @@ #include <stdarg.h> #endif /* Not RC_INVOKED */ +#ifdef __COREDLL__ +/* + * On Windows CE, including stdio.h or stdlib.h has the same result. + */ +#include <stdlib.h> +#endif /* Flags for the iobuf structure */ #define _IOREAD 1 /* currently reading */ Index: stdlib.h =================================================================== --- stdlib.h (revision 932) +++ stdlib.h (working copy) @@ -14,6 +14,13 @@ /* All the headers include this file. */ #include <_mingw.h> +#ifdef __COREDLL__ +/* + * On Windows CE, including stdio.h or stdlib.h has the same result. + */ +#include <stdio.h> +#endif + #define __need_size_t #define __need_wchar_t #define __need_NULL
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel