delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/18/08:10:54

Date: Fri, 18 Jul 1997 08:10:32 -0400 (EDT)
Message-Id: <1.5.4.16.19970718174239.35bf8ec2@giasbga.vsnl.net.in>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Chirayu Krishnappa <chirayu AT radiolink DOT net>
Subject: sizeof() in #if

Hi,

I wanted to write a types.h file #defining in2, int4 & int8 to maintain
portability.

However, gcc chokes on the #if sizeof(int)==2 line. Is'nt sizeof() a compile
time operator?

Help.

Thanks & Bye,

Chirayu Krishnappa:
------------------
e-mail: chirayu AT poboxes DOT com
Phone:  91 080 3332616.
============================================================================
==========

- Raw text -


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