www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/24/15:33:34

Message-ID: <003a01be7635$9d68fc00$b15d44ce@computer>
From: "Sean Middleditch" <sean DOT middleditch AT usa DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: Preprocessor hates sizeof
Date: Wed, 24 Mar 1999 15:33:41 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

What exactly is the purpose of this?  It looks to me like you're trying to
check if the compile is 32-bit (and thus a 32-bit long int would be the same
as the standard 32-bit int).  Instead, you should check for the definition
of __DJGPP__, if that's what you're aiming to do.

Sean Middleditch
 of
AwesomePlay Productions
http://www.angelfire.com/biz/aweplay
awepay AT iname DOT com

-----Original Message-----
From: Wojciech Piechowski <voyt AT ds2 DOT pg DOT gda DOT pl>
Newsgroups: comp.os.msdos.djgpp
To: DJGPP mailing list <djgpp AT delorie DOT com>
Date: Wednesday, March 24, 1999 8:51 AM
Subject: Preprocessor hates sizeof


>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)
>
>--------------------\  Wojciech  Piechowski  /----------------------------
>Student informatyki  \  voyt AT ds2 DOT pg DOT gda DOT pl  /  Student of computer science
>Politechnika Gdanska  \____________________/   Gdansk Technical University
>

- Raw text -


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