changeset 5841:d61104781d9c draft

(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.
author truelight <truelight@openttd.org>
date Fri, 26 Jan 2007 08:27:59 +0000
parents 3f5dffd75f7c
children fa0fd287c6f1
files src/network/core/os_abstraction.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/core/os_abstraction.h
+++ b/src/network/core/os_abstraction.h
@@ -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