Path: utzoo!mnetor!uunet!husc6!bbn!rochester!PT.CS.CMU.EDU!K.GP.CS.CMU.EDU!jgm From: jgm@K.GP.CS.CMU.EDU (John Myers) Newsgroups: comp.windows.x Subject: Re: X.V11R2 on the RT Message-ID: <1085@PT.CS.CMU.EDU> Date: 10 Mar 88 01:53:23 GMT References: <8803031836.AA05252@rover.UMD.EDU> Sender: netnews@PT.CS.CMU.EDU Organization: System/Technology Development Corp. Lines: 30 In article <8803031836.AA05252@rover.UMD.EDU> jonnyg@ROVER.UMD.EDU (Jon Greenblatt) writes: > I started to compile the core.src on the IBM RT and found a problem. >Add the the following lines to the begining of ./lib/X/Xlibint.h to fix the >problem: > >#ifdef __STDC__ >#undef __STDC__ >#endif May I suggest: #ifdef __HIGHC__ #undef __STDC__ #endif > You may want to elaborate the #ifdef further if you are using more > than one architecture for the source. The problem is that hc is an ansi > like compiler but defines the __STDC__ define which is not ansi. This > causes macro expansions in Xlibint.h to use ##'s instead of /**/'s as a > macro spacer. __STDC__ is a macro which is supposed to be defined if the compiler is an ANSI conforming compiler. hc is NOT an ANSI conforming compiler as it does not recognize the # and ## preprocessor commands. As the documentation for hc claims that it is an ANSI conforming compiler, I have APAR'ed this. -- John G. Myers jgm@k.gp.cs.cmu.edu