From ef37b3067433efb38c3a9282541e062ef8441408 Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 26 Jan 2007 08:27:59 +0000 Subject: (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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/network/core/os_abstraction.h') diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h index d90b152a5..c4cbcee20 100644 --- a/src/network/core/os_abstraction.h +++ b/src/network/core/os_abstraction.h @@ -124,6 +124,9 @@ typedef unsigned long in_addr_t; #if defined(__MORPHOS__) || defined(__AMIGA__) # include # include // 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 // FIO* defines # include // SIO* defines -- cgit v1.2.3-54-g00ecf