Xref: utzoo comp.lang.c:11715 comp.os.vms:7817 Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!mit-eddie!killer!tness7!petro!iquery!matt From: matt@iquery.UUCP (Matt Reedy) Newsgroups: comp.lang.c,comp.os.vms Subject: cpp compatiblity Unix/VMS Keywords: cpp #include VMS Message-ID: <134@iquery.UUCP> Date: 4 Aug 88 20:46:02 GMT Organization: Programmed Intelligence, San Antonio Lines: 26 We had a discussion a few months ago about the [in]compatiblity of the System V.3 cpp and VMS #include syntax, but I forgot the outcome :^). The problem is the following: I want the same source to compile on both SysV and VMS, so I use this style: #ifdef VAX #include file #include stdio #else #include #include #endif On the VAX, the '#include file' and '#include stdio' syntax is valid and references members of a text library. However, my 3B2 cpp chokes on these lines with 'bad include syntax' even though the symbol VAX is NOT DEFINED. Is there an easy workaround? matt -- Matthew Reedy UUCP: {harvard!adelie,gatech!petro}!iquery!matt Programmed Intelligence Corp. "Lots of people without brains do alot of talking" 400 N Loop 1604 E, Suite 330 Scarecrow - "Wizard of Oz" San Antonio, TX 78232 (512) 490 6684