Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> pro c compiler and POSIX_SOURCE

pro c compiler and POSIX_SOURCE

From: pat saunders <pat.saunders_at_sis.securicor.co.uk>
Date: 14 Apr 2003 11:57:52 -0700
Message-ID: <bc0e3bd8.0304141057.7c935a65@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 - 13:57:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US