At 15:36 +0100 11/20/07, Joerg Schilling wrote:
> If you convert to ## and if Dtrace on Solaris still calls
> /lib/cpp, it will no longer work on Solaris.
>
> Check the __CONCAT__ macro in /usr/include/sys/*.h

Well, "grep __CONCAT__ /usr/include/sys/*.h" comes up empty
on Leopard, so no help there.  However, Googling about, I do
see some examples of __CONCAT__ definitions.

I wonder if I need to do something like this, for portability:

  #if __APPLE__
  #define __CONCAT__(A,B) A ## B
  #else
  #define __CONCAT__(A,B) A/**/B
  #endif

then use __CONCAT__ in the following code.  Problem is, I
don't know what the #if test should be.  __APPLE__ is a bit
too specific...

Comments?  Clues?  Suggestions?

-r
-- 
http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     [EMAIL PROTECTED]
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to