Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!sun!pitstop!mutchler From: mutchler@pitstop.UUCP (Dan Mutchler) Newsgroups: comp.lang.c++ Subject: Zortech dos.h fix Keywords: zortech Message-ID: <421@pitstop.UUCP> Date: 9 Feb 89 05:55:43 GMT Reply-To: mutchler@pitstop.UUCP (Dan Mutchler) Distribution: comp.lang.c++ Organization: Sun Microsystems, Inc., Mountain View, CA. Lines: 20 I have found a minor annoyance in the Zortech C++ compiler if you want to enforce strict ANSI compliance (-A) at compile time. The dos.h file contains several declarations that use the keyword "far" which is not part of the ANSI standard and causes the compiler to complain, as it should. The killer is that there are flags in that file required for routines like open. The most obvious fix, that Zortech should do is move all I/O declarations to io.h, as the documentation would lead you to believe is the case, but a quick fix is bracket the far declarations with: #if __STDC__ != 1 ... #endif These occur at lines 55-69 in my copy (version 1.07). I hope this is of use to someone. I grepped all of the include files and dos.h seems to be the only one with "far" or "near" keywords in it. Dan Mutchler sun!zule!mutchler Sun Microsystems