Thread View: comp.sys.sgi.bugs
1 messages
1 total messages
Started by David B.Anderson
Wed, 23 Dec 1992 21:40
Re: Recognizing which cc is being used.
Author: David B.Anderson
Date: Wed, 23 Dec 1992 21:40
Date: Wed, 23 Dec 1992 21:40
29 lines
1511 bytes
1511 bytes
In article <BzqCEy.HG9@math.uwaterloo.ca> rbutterw@math.uwaterloo.ca (Ray Butterworth [MFCF]) writes: >The cc(1) on IRIX 4.0.5f seems to operate in 3 different modes: >-cckr, -ansi, and -xansi. > >-ansi defines __STDC__ >-xansi doesn't, but does define __EXTENSIONS__ >-cckr also doesn't define __STDC__, and it also defines __EXTENSIONS__. > >How is one supposed to test (in the source) which of the >last two modes the compiler is running under? >(I suggest that -cckr should set some symbol to indicate this.) See below >In particular, does one use token/**/token or token##token >to join two cpp tokens in a macro? Yes if ansi cpp (__ANSI_CPP__ is defined), no if not. I have not figured out, or seen, any portable way to determine if ANSI CPP or traditional Reiser cpp is in use. I've been convinced that I was being wrongheaded: future releases WILL define __STDC__ with -xansi. At that time, you will be able to test __STDC__ For now, well..... [ David B. Anderson (415)390-4263 davea@sgi.com ] [ I am also sending mail: I though this was of enough general interest to post]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads