Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ALDERAAN.SCRC.SYMBOLICS.COM!Ed From: Ed@ALDERAAN.SCRC.SYMBOLICS.COM (Ed Schwalenberg) Newsgroups: gnu.gcc.bug Subject: gcc 1.35 dislikes #ifdef ecd.color Message-ID: <19890727173541.1.ED@BLACK-BIRD.SCRC.Symbolics.COM> Date: 27 Jul 89 17:35:00 GMT References: <8907271609.AA01705@hobbes.sanders.com> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Date: Thu, 27 Jul 89 12:09:14 EDT From: Webster Dove Is that a gcc bug, or an ansi violation on suns part /usr/include/suntool/panel.h:35: warning: garbage at end of #ifdef argument /* new attributes should start at PANEL_LAST_ATTR + 1 */ #ifdef ecd.color #define PANEL_LAST_ATTR 127 #else #define PANEL_LAST_ATTR 125 #endif It's not ANSI, it's not even K&R. The identifiers for #ifdef are the same as C identifiers; they can't have '.' characters in them. That #ifdef has been parsed by Sun's CC as #ifdef ecd, which just happened to "work".