Newsgroups: comp.windows.ms.programmer Path: utzoo!utgpu!watserv1!maytag!csg.waterloo.edu!giguere From: giguere@csg.waterloo.edu (Eric Giguere) Subject: Changes MS should make to the windows.h file Message-ID: <1991Jan26.010935.4400@maytag.waterloo.edu> Sender: daemon@maytag.waterloo.edu (Admin) Organization: Computer Systems Group, University of Waterloo Distribution: na Date: Sat, 26 Jan 91 01:09:35 GMT Lines: 35 1) Put in something similar to: #ifndef WINDOWS_H_INCLUDED #define WINDOWS_H_INCLUDED blah blah blah #endif /* WINDOWS_H_INCLUDED */ Right now I kludge it by testing for the PASCAL macro. 2) Replace the line: WORD NEAR * PASCAL pLocalHeap; with the proper ANSI form: extern WORD NEAR * PASCAL pLocalHeap; since ANSI compliant compilers define storage for the first. Or at least put in something like this: #if defined ( _MSC_VER ) /* Microsoft C */ WORD NEAR * PASCAL pLocalHeap; #else /* Watcom C */ extern WORD NEAR * PASCAL pLocalHeap; #endif 3) Make it smaller/split it up. Probably a pipe dream here. Anything else we should all be aware about...? -- Eric Giguere giguere@csg.UWaterloo.CA Quoth the raven: "Eat my shorts!" --- Poe & Groening