PRO-C and _POSIX_SOURCE
From: pat saunders <pat.saunders_at_sis.securicor.co.uk>
Date: 14 Apr 2003 07:00:53 -0700
Message-ID: <bc0e3bd8.0304140600.1f507a3_at_posting.google.com>
Hi,
I am using Oracle 7.3.1 .
On some versions of Unix (e.g TRU64). I get strange syntax errors in header files with the
PRO-C compiler.
Date: 14 Apr 2003 07:00:53 -0700
Message-ID: <bc0e3bd8.0304140600.1f507a3_at_posting.google.com>
Hi,
I am using Oracle 7.3.1 .
On some versions of Unix (e.g TRU64). I get strange syntax errors in header files with the
PRO-C compiler.
E.G
test.h
typedef struct {
pid_t pid;
}
produces the a syntax error on line pid_t pid;
pid_t is defined in a system 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.
Any ideas,
Pat
Received on Mon Apr 14 2003 - 16:00:53 CEST