www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/24/11:41:03

Date: Wed, 24 Mar 1999 17:40:16 +0100
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199903241640.RAA15659@acp3bf.physik.rwth-aachen.de>
To: djgpp AT delorie DOT com
Subject: Re: Preprocessor hates sizeof
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B
X-Newsreader: TIN [version 1.2 PL2]
Reply-To: djgpp AT delorie DOT com

In article <Pine DOT GSO DOT 3 DOT 96 DOT 990324144841 DOT 28874A-100000 AT delta DOT ds2 DOT pg DOT gda DOT pl> you wrote:
> Hi

> I wonder why the following line does not compile and how to make it work:

> #if sizeof(long int)==sizeof(int)

> (Borland likes it)

Preprocessors are *not* allowed to like that line. Borland is
violating the definition of C if it accepts that line and does what
you think it should.

So Borland is in error, here, not DJGPP.

--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019