www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/22/02:02:38

From: "Linda Houston" <linkob AT one DOT net DOT au>
Newsgroups: comp.os.msdos.djgpp
References: <39f23421 DOT 749522025 AT 198 DOT 60 DOT 22 DOT 3>
Subject: Re: LFNs, timeslices and the preprocessor
Date: Sun, 22 Oct 2000 15:50:29 +1000
Lines: 22
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
NNTP-Posting-Host: 203.101.57.103
Message-ID: <39f28237@pink.one.net.au>
X-Trace: 22 Oct 2000 16:59:19 +1000, 203.101.57.103
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>#3 - Slightly off-topic portability question.  Reading the CLC FAQ
>suggests that a construct like "#if sizeof(int)" doesn't work (it does
>work in BC, apparently just to annoy people trying to port stuff from
>BC to GCC).  What else would be a good way to test the size of a type
>at compile time (e.g. to make sure that long is exactly 32 bits)?  I
>could check it with sizeof at runtime, but that would be nasty.
>
>Thanks.

I am a bit unsure about this, but i did it recently,  i think its defined in
 %DJDIR%/include/sys/values.h

or maybe ctype or ctypes.h

a define in there, i think it has the max values for the types, and the bit
sizes...

Kalin



- Raw text -


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