Compiling on old Digital Unix

David Champion
Sat, 21 Oct 2000 22:54:42 -0500

On 2000.10.21, in <>,
	"Brian Salter-Duke" <> wrote:

> Some C compilers and the DU is one of them ignore lines such as "#ifdef
> .." unless the # is in the 1st column (showing my Fortran upbringing - I
> mean the 1st position on the line). This gives lots of errors. It was a
> boring job to edit out all the spaces and tabs before #. Could the
> developers please change this? It is a seriously bad thing to do. Not all
> of us use gcc all the time.
On some platforms you get a neat compromise by changing: #if foo #ifndef bar #endif /* !bar */ #endif /* foo? */ to: #if foo # ifndef bar # endif /* !bar */ #endif /* foo? */ Does that work with the Digital compiler? -- -D. NSIT University of Chicago -- Archive is at - Unsubscribe by sending mail with a subject of "unsubscribe" to