Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!crdgw1!camelback!volpe From: volpe@camelback.crd.ge.com (Christopher R Volpe) Newsgroups: comp.std.c Subject: Another sizeof question Message-ID: <13171@crdgw1.crd.ge.com> Date: 28 Oct 90 07:40:49 GMT Sender: news@crdgw1.crd.ge.com Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe) Lines: 13 Can someone tell me whether "sizeof" expressions are allowed as operands of "#if"? I'm trying to do some conditional compilation based on the size of some data structure, and I get parse errors before sizeof. The Bible says "sizeof" yields a constant integer, and that #if requires an integral constant expression, so I can't tell what's wrong. Can someone clue me in? Thanks. BTW, I'm using gcc to compile. ================== Chris Volpe G.E. Corporate R&D volpecr@crd.ge.com