[comp.unix.aix] cpp defines for AIX 3.1 RS/6000

david@PacBell.COM (David St. Pierre) (07/21/90)

Anyone know what pre-defined symbols cpp understands for the RS/6000?
I'm trying to port ntp and (apparently) need to conditionalize some
of the include files and macro definitions.

Out of curiosity, is it going to be normal practice to make things
like "hz" (sys/m_param.h) macro definitions instead of variables?
I thought that standard practice was to use upper-case.

(I think that when I tried to compile ksh a few AIX releases ago,
I also saw the opposite - a ksh macro (FLOAT) was a typedef.
That seems to have gone away at least.)
--
David St. Pierre 415/823-6800	{att,bellcore,sun,ames,decwrl}!pacbell!david

garnett@mcs.anl.gov (John Garnett) (07/25/90)

In article <1990Jul21.014315.12393@PacBell.COM> david@PacBell.COM (David St. Pierre) writes:
>Anyone know what pre-defined symbols cpp understands for the RS/6000?
>I'm trying to port ntp and (apparently) need to conditionalize some
>of the include files and macro definitions.
>

  The predefined symbols are "_IBMR2" and "_AIX".  The definitions made
  by the compiler can be found in the file /etc/xlc.cfg.


-- 
John Garnett
                              Argonne National Laboratory
garnett@mcs.anl.gov           Mathematics and Computer Science Division
                              Argonne, Illinois