Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!teknowledge-vaxc!mkhaw From: mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) Newsgroups: comp.sources.d Subject: "faces" bugfix for sunview.c in SunOS 3.5 Message-ID: <26171@teknowledge-vaxc.ARPA> Date: 16 Dec 88 02:44:48 GMT Reply-To: mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) Organization: Teknowledge, Inc., Palo Alto CA Lines: 35 cpp in SunOS 3.5 botches a #define in , which actually reads: > #define SUNVIEW.H but appears to be interpreted as: > #define SUNVIEW H so that when faces/sunview.c tries in init_ws_type(), line 191, to set > gtype = SUNVIEW ; it turns into > gtype = H ; and the compiler barfs because it doesn't know what "H" is. I used the following workaround: > #ifdef SUNVIEW > #define MYFOO SUNVIEW > #undef SUNVIEW > #endif > gtype = SUNVIEW ; > #ifdef MYFOO > #define SUNVIEW MYFOO > #undef MYFOO > #endif Mike Khaw -- internet: mkhaw@teknowledge.arpa uucp: {uunet|sun|ucbvax|decwrl|ames|hplabs}!mkhaw%teknowledge.arpa hardcopy: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303