From mint-bounce@lists.fishpool.fi Fri Jan 1 19:34:22 2010 Message-ID: <4B3E9412.6010501@freesbee.fr> Date: Sat, 02 Jan 2010 01:32:18 +0100 From: =?ISO-8859-15?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: "mint@lists.fishpool.fi" Subject: Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] freemint/sys/sockets/inet4 References: <201001011533.o01FXxwV032211@mail.sparemint.org> <1262366629.16683.1686.camel@jetpack.demon.co.uk> <4B3E336F.5010502@atari.org> <4B3E349B.9030100@freesbee.fr> <4B3E3C25.1000602@atari-source.org> <4B3E486B.2010507@atari-source.org> <4B3E5FD9.9040508@atari-source.org> <4B3E71C5.9070803@online.no> <4B3E7ADB.6050506@atari.org> <4B3E80FE.1070107@freesbee.fr> <4B3E877C.2050502@atari.org> <4B3E8B50.2000208@freesbee.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed X-Antivirus: avast! (VPS 100101-0, 01/01/2010), Outbound message X-Antivirus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o020YLvB020131 Helmut Karlowski wrote: > Do you mean something like this: > > #define X -1 > > #if X != -1 > #error "X != -1" > #endif Yes. Unfortunately I have currently no access to GCC 2.95 right now. I will check again next week. My example comes from the binutils patch: -#if EOF != -1 +#if !(EOF == -1) /* gcc 2.95.3 has bug in '!=' operator for negative constants */ #error "hex.c requires EOF == -1" #endif I had to keep that patch to be able to compile the binutils package on a standard EasyMiNT. But now I wonder of EOF is really defined at that point... -- Vincent Rivière