* PRO-C and types.h
@ 2003-04-16 8:54 pat saunders
0 siblings, 0 replies; only message in thread
From: pat saunders @ 2003-04-16 8:54 UTC (permalink / raw)
Hi,
I am using Oracle 7.3.1 and Tru64 Unix V5.1A.
I am compiling a C application.
When I pre-compile *.pc files that reference include files
that #include <sys/types.h> I get syntax errors
E.G
test.h
typedef struct {
pid_t pid;
}
produces a syntax error on line pid_t pid (unexpected type).
pid_t is defined in <types.h> header file.
What I cannot understand if in test.c
#include <test.h>
#define _POSIX_SOURCE
if I comment out the #define _POSIX_SOURCE line.
All syntax errors in header file disappear.
The Pro - c compiler seems to be having problems
with this system file. As if I redefine pid_t
typedef int pit_t in test.h it then works ok
Pat
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-16 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-16 8:54 PRO-C and types.h pat saunders
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox