summaryrefslogtreecommitdiffstats
path: root/src/os_amiga.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-11-20 16:53:39 +0100
committerBram Moolenaar <Bram@vim.org>2012-11-20 16:53:39 +0100
commit82881498663eb692e90dcfb9da0a7f573f228e35 (patch)
treebf2ffc25d638538bd870377c87d07709c0fcae6f /src/os_amiga.c
parent0ac24e1ef4b099c95c55261bc2d227ca5707d295 (diff)
updated for version 7.3.719v7.3.719
Problem: Cannot run new version of cproto, it fails on missing include files. Solution: Add lots of #ifndef PROTO
Diffstat (limited to 'src/os_amiga.c')
-rw-r--r--src/os_amiga.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/os_amiga.c b/src/os_amiga.c
index e2b1579499..0b63ea1522 100644
--- a/src/os_amiga.c
+++ b/src/os_amiga.c
@@ -22,6 +22,9 @@
#undef TRUE /* will be redefined by exec/types.h */
#undef FALSE
+/* cproto fails on missing include files, skip them */
+#ifndef PROTO
+
#ifndef LATTICE
# include <exec/types.h>
# include <exec/exec.h>
@@ -55,6 +58,8 @@
# include <libraries/arp_pragmas.h>
#endif
+#endif /* PROTO */
+
/*
* At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0.
*/
@@ -283,7 +288,9 @@ mch_init()
#endif
}
-#include <workbench/startup.h>
+#ifndef PROTO
+# include <workbench/startup.h>
+#endif
/*
* Check_win checks whether we have an interactive window.
@@ -1002,7 +1009,9 @@ mch_screenmode(arg)
* Heavely modified by mool.
*/
-#include <devices/conunit.h>
+#ifndef PROTO
+# include <devices/conunit.h>
+#endif
/*
* try to get the real window size
@@ -1129,9 +1138,11 @@ out_num(n)
* say 'oml lib:amiga.lib -r sendpacket.o'
*/
+#ifndef PROTO
/* #include <proto/exec.h> */
/* #include <proto/dos.h> */
-#include <exec/memory.h>
+# include <exec/memory.h>
+#endif
/*
* Function - dos_packet written by Phil Lindsay, Carolyn Scheppner, and Andy