In general it is *very dangeruous* to assume that this or that header is not
included for any reason. The chance of this "non bug" ot breaking a {Open Mo,
Mo,Less}tif port is at least 99.99% (my estimate is 120%). Anything that needs
Xmu or Xt is probably fatal. If you are going to use X11 then threading on X11
type names in the public headers *is* a bug.
If you want a really dirty fix then a quick #define after the public headrs
have been included can fix the structure name before cc1 or cc1plus sees it.
The real fix is to use a safe name (try LyX_ObjectRec instead), which should
be easy enough with a move along the lines of
for I in *.C *.h; do mv $I $I.old; sed 's/_ObjectRec/LyX_ObjectRec/g' <$I.old >
$I; done
in your favorite bourne comatible shell. If you want ot make the types
internal then I would propose _LyX_ObjectRec. You can zap *.C.old and *.h.old
after checking it still works.
--
Duncan (-:
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."