home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11468 < prev    next >
Encoding:
Text File  |  1992-07-24  |  1.0 KB  |  41 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!wupost!news.utdallas.edu!convex!ssimmons
  3. From: ssimmons@convex.com (Steve Simmons)
  4. Subject: >>>>>>Naming collision of X11 Object and NIH Object class
  5. Message-ID: <ssimmons.711982634@convex.convex.com>
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Nntp-Posting-Host: pixel.convex.com
  8. Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
  9. Date: Fri, 24 Jul 1992 12:57:14 GMT
  10. X-Disclaimer: This message was written by a user at CONVEX Computer
  11.               Corp. The opinions expressed are those of the user and
  12.               not necessarily those of CONVEX.
  13. Lines: 26
  14.  
  15.  
  16. This should be a frequently asked question ;-.
  17.  
  18. Just jacket the X11 include files with defines and undefs
  19.  
  20.  
  21. // To avoid namespace collisions between NIH and X:
  22.  
  23. #define Object XObject
  24. #define String XString
  25.  
  26.  
  27. #include <X11/cursorfont.h>        /* For various pointer fonts */
  28. #include <X11/Xatom.h>
  29.  
  30. // Namespace collisions avoided.
  31.  
  32. #undef Object
  33. #undef String
  34.  
  35.  
  36. Thank you. 
  37.  
  38.  
  39.                     Steve Simmons 
  40.  
  41.