🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ibm.pc.rt
1 messages
1 total messages Started by D. Jason Penney Thu, 26 Oct 1989 15:12
RT-specific cpp Flag?
#508
Author: D. Jason Penney
Date: Thu, 26 Oct 1989 15:12
28 lines
1504 bytes
We have some code that is heavily ported (over half a dozen systems).  One
of our tricks is to recognize pre-defined preprocessor symbols and to use those
to indicate the given hardware/os platform that the code is running on.  A
few examples might suffice:

VMS -- DEC VAX/VMS (Note: SYS$GETSYI can subsequently return much more specific info)
sun -- Sun Microsystems
  mc68020 -- Sun-3
  sparc   -- Sun-4
  sun386  -- Sun 386i RoadRunner
ultrix -- DEC Ultrix
  mips -- DECstation
  vax  -- VAXstation
sony_news -- Sony NEWS workstation

... and so forth.  You get the idea.

The problem arises with AIX.  "AIX" will define the operating system
directly, but how do I distinguish 370, RT, and (soon to be available) RIOS
architectures?

Please reply by e-mail, and I will post a summary if warranted.  Thanks
in advance.
-- 
D. Jason Penney                  Ph: (503) 629-8383
Beaverton, OR 97006              uucp: ...uunet!servio!penneyj
STANDARD DISCLAIMER:  Should I or my opinions be caught or killed, the
company will disavow any knowledge of my actions...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads