home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!wupost!news.utdallas.edu!convex!ssimmons
- From: ssimmons@convex.com (Steve Simmons)
- Subject: >>>>>>Naming collision of X11 Object and NIH Object class
- Message-ID: <ssimmons.711982634@convex.convex.com>
- Sender: usenet@news.eng.convex.com (news access account)
- Nntp-Posting-Host: pixel.convex.com
- Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
- Date: Fri, 24 Jul 1992 12:57:14 GMT
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 26
-
-
- This should be a frequently asked question ;-.
-
- Just jacket the X11 include files with defines and undefs
-
-
- // To avoid namespace collisions between NIH and X:
-
- #define Object XObject
- #define String XString
-
-
- #include <X11/cursorfont.h> /* For various pointer fonts */
- #include <X11/Xatom.h>
-
- // Namespace collisions avoided.
-
- #undef Object
- #undef String
-
-
- Thank you.
-
-
- Steve Simmons
-
-