summaryrefslogtreecommitdiff
path: root/src/os_amiga.c
diff options
context:
space:
mode:
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 e2b157949..0b63ea152 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