Hi,
Currently, including errno.h when building with mingw32ce yields an error.
Even though there isn't any errno variable available on Windows CE, the
error codes defined in errno.h may still be of value. E.g. ffmpeg uses
them extensively, even though their use of the actual errno variable is
much more limited. Applying this patch eases compilation of ffmpeg quite a
bit.
// Martin
Index: mingw/include/errno.h
===================================================================
--- mingw/include/errno.h (revision 1347)
+++ mingw/include/errno.h (working copy)
@@ -8,10 +8,6 @@
*
*/
-#ifdef __COREDLL__
-# include_next <errno.h>
-#else /* __COREDLL__ */
-
#ifndef _ERRNO_H_
#define _ERRNO_H_
@@ -84,6 +80,8 @@
extern "C" {
#endif
+#ifndef __COREDLL__
+
/*
* Definitions of errno. For _doserrno, sys_nerr and * sys_errlist, see
* stdlib.h.
@@ -96,6 +94,8 @@
#define errno (*_errno())
#endif
+#endif /* Not __COREDLL__ */
+
#ifdef __cplusplus
}
#endif
@@ -104,4 +104,3 @@
#endif /* Not _ERRNO_H_ */
-#endif /* Not __COREDLL__ */
------------------------------------------------------------------------------
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel