(svn r8411) [MorphOS] -Fix: tons of unneeded warnings in networking code, because MorphOS wants UBYTE arrays and we use char arrays. Solution is a bit hackish.
authortruelight
Fri, 26 Jan 2007 08:27:59 +0000
changeset 5841 db7a27cf1f4d
parent 5840 2ff9c5f3bfa4
child 5842 d3a1169d7ef4
(svn r8411) [MorphOS] -Fix: tons of unneeded warnings in networking code, because MorphOS wants UBYTE arrays and we use char arrays. Solution is a bit hackish.
src/network/core/os_abstraction.h
--- a/src/network/core/os_abstraction.h	Fri Jan 26 07:50:34 2007 +0000
+++ b/src/network/core/os_abstraction.h	Fri Jan 26 08:27:59 2007 +0000
@@ -124,6 +124,9 @@
 #if defined(__MORPHOS__) || defined(__AMIGA__)
 #	include <exec/types.h>
 #	include <proto/exec.h>   // required for Open/CloseLibrary()
+	/* MorphOS defines his network functions with UBYTE arrays while we
+	 *  use char arrays. This gives tons of unneeded warnings */
+#	define UBYTE char
 #	if defined(__MORPHOS__)
 #		include <sys/filio.h>  // FIO* defines
 #		include <sys/sockio.h> // SIO* defines