Tobias <tobias...@gmail.com> wrote: > I am searching a constant to check if I am compiling on an (Open)Solaris > system with x86 architecture. Apple defines __APPLE__ to check for Mac OS X, > WIN32 can be used for Windows etc. Is there something for (Open)Solaris? I > could not find any information on this. > thanks for your help
Just call: cc -# t.c and check the parameters of the called programs..... /opt/SUNWspro/prod/bin/acomp -xldscope=global -i t.c -y-fbe -y/oroot/opt/SUNWspro/prod/bin/fbe -y-xarch=generic -y-o -yt.o -y-verbose -y-xthreadvar=no%dynamic -y-comdat -xdbggen=no%stabs+dwarf2+usedonly -xdbggen=incl -y-s -m32 -fparam_ir -Qy -D__SunOS_5_11 -D__SUNPRO_C=0x590 -D__SVR4 -D__sun -D__SunOS -D__unix -D__i386 -D__BUILTIN_VA_ARG_INCR -D__C99FEATURES__ -Xa -D__PRAGMA_REDEFINE_EXTNAME -Dunix -Dsun -Di386 -D__RESTRICT -xc99=%all,no%lib -D__FLT_EVAL_METHOD__=-1 -I/oroot/opt/SUNWspro/prod/include/cc "-g/oroot/opt/SUNWspro/prod/bin/cc -c " -fsimple=0 -D__SUN_PREFETCH -destination_ir=yabe People usually check for -Dsun and -D__SVR4 Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code