I gather that I can expect __APPLE__ to be defined on Leopard. Can folks give me some equivalent variables for Solaris and the other OSes that DTrace is being ported to? I''d like to use these (in a config.d file) to turn blocks of #defines on and off... -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development
FreeBSD uses: __FreeBSD__ -- John Birrell -- This message posted from opensolaris.org
Joerg Schilling
2007-Dec-15 12:28 UTC
[dtrace-discuss] OS identification (for portability)?
John Birrell <jb at what-creek.com> wrote:> FreeBSD uses: __FreeBSD__If you are looking for a collection of these symbols, I recommend to look into libscg/scsihack.c in cdrtools. J?rg -- EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin js at cs.tu-berlin.de (uni) schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily