HP C Programmer's Guide (92434-90009)

164 Chapter6
Migrating C Programs to HP-UX
Typedefs
Typedefs
The HP C compiler does not allow combining type specifiers with typedef names.
For example:
typedef long t;
unsigned t var;
Compilers derived from pcc accept this code, but HP C does not. Change the typedef to
include the type specifier:
typedef unsigned long t;
t var;
or use a define:
#define t long
unsigned t var;