HPlogo HP C/HP-UX Programmer's Guide: Workstations and Servers > Chapter 6 Migrating C Programs to HP-UX

Predefined Macro Names

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

In non-ANSI mode, there are several HP C specific macro names defined. These names may conflict with identifiers used in the source code.

The HP 9000 workstation and server preprocessors predefine the macro names PWB, hpux, and unix. The HP 9000 workstations and servers predefine the macro name hp9000s800; the HP 9000 Series 500 predefines hp9000s500; and the HP 9000 Series 300/400 predefine the macro name hp9000s300. The VAX predefines the macro name vax. If any of these macro names is used as an identifier in the source code, use the #undef preprocessor directive to "undefine" the macro or rename the identifier(s).

In ANSI mode, none of the above macro names are defined and you should not have difficulty with these HP C specific macro names.

© Hewlett-Packard Development Company, L.P.