The first enclosed patch quashes "invalid pragma" warnings in platform.h, the
second one makes another exception to imcc requiring <sysexits.h> (maybe imcc
should come with a sysexits.h instead?)
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--- config/gen/platform/win32.h.orig Tue Jul 23 00:25:36 2002
+++ config/gen/platform/win32.h Thu Sep 5 18:35:46 2002
@@ -14,6 +14,7 @@
#endif
/* These disable certain Level 4 Warnings */
+#ifdef _MSC_VER
#pragma warning( disable: 4100 ) /* disables 'unreferenced formal parameter'
* warnings */
#pragma warning( disable: 4115 ) /* disables 'named type definition in
@@ -21,6 +22,7 @@
* include files */
#pragma warning( disable: 4505 ) /* disables 'unreferenced local function has
* been removed' warnings in header files */
+#endif
/*
** Miscellaneous:
*/
--- languages/imcc/imc.h.orig Mon Aug 26 23:48:44 2002
+++ languages/imcc/imc.h Thu Sep 5 18:57:56 2002
@@ -3,14 +3,14 @@
#include <stdio.h>
#include <stdlib.h>
-#ifndef _MSC_VER
-# include <sysexits.h>
-#else
+#if defined(_MSC_VER) || defined(__MINGW32__)
# define EX_DATAERR 1
# define EX_SOFTWARE 1
# define EX_NOINPUT 1
# define EX_IOERR 1
# define EX_UNAVAILABLE 1
+#else
+# include <sysexits.h>
#endif
#include "symreg.h"