home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.ultrix:6308 gnu.gcc.help:1934
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!darwin.sura.net!haven.umd.edu!umd5!shy.umd.edu!hunt
- From: hunt@shy.umd.edu (Brian Hunt)
- Newsgroups: comp.unix.ultrix,gnu.gcc.help
- Subject: Re: DECstation /usr/include/X11/Xlib.h and gcc.
- Message-ID: <hunt.714159566@shy.umd.edu>
- Date: 18 Aug 92 17:39:26 GMT
- References: <1992Aug11.133444.16164@uicc.com> <MAN.92Aug18125150@imrryr.at>
- Sender: news@umd5.umd.edu
- Lines: 32
-
- man@magwien.gv.at (Andreas Manessinger) writes:
- >Meanwhile I got a hint from `olle@bellatrix.tdb.uu.se'. He writes:
- > olle> You will have to edit the files Xlib.h and Xutil.h.
- > olle> You will need to move some definitions (those in your listing
- > olle> and some others) from Xutil to XLib
- >
- >Well, that's really all you have to do. The definitions you have to
- >move are:
- > XSizeHints
- > XWMHints
- > XTextProperty
- > XClassHint
- > XStandardColormap
-
- Rearranging Xlib.h and Xutil.h is no doubt the best solution; someone
- was nice enough to send me his fix, which basically consisted of
- moving all the definitions after the
-
- /*
- * ICCCM stuff
- */
-
- comment from Xlib.h into Xutil.h (he also fixed 3 bad #endif lines in
- Xlib.h, dunno how much difference that makes).
-
- However, a really quick fix which some people may prefer to try first
- is to use the "-traditional-cpp" option to gcc. I vaguely recall this
- causing other problems in some cases, but it many cases it worked fine
- for me.
-
- Brian Hunt
- hunt@ipst.umd.edu
-