diff options
author | Michael Meskes <meskes@postgresql.org> | 2000-11-09 14:06:57 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2000-11-09 14:06:57 +0000 |
commit | 5cbbdd2ecb1ff820e37793fc2237339df756d3dc (patch) | |
tree | 5bfff49bcec968c4a372d148b251f4efbcdafc7b /src/interfaces/ecpg/include/ecpglib.h | |
parent | b0299c5d3743dc7cc91f31eee1463e74ffca7d78 (diff) | |
download | postgresql-5cbbdd2ecb1ff820e37793fc2237339df756d3dc.tar.gz postgresql-5cbbdd2ecb1ff820e37793fc2237339df756d3dc.zip |
Applied yet another patch by Christof. Thanks Cristof!
Synced parser.
Diffstat (limited to 'src/interfaces/ecpg/include/ecpglib.h')
-rw-r--r-- | src/interfaces/ecpg/include/ecpglib.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h index 5d1cde55165..e8c5a9a6ffa 100644 --- a/src/interfaces/ecpg/include/ecpglib.h +++ b/src/interfaces/ecpg/include/ecpglib.h @@ -1,5 +1,30 @@ -#include "postgres.h" -#include "libpq-fe.h" +/* + * this is a small part of c.h since we don't want to leak all postgres + * definitions into ecpg programs + */ + +#ifndef __BEOS__ +#ifndef __cplusplus +#ifndef bool +#define bool char +#endif /* ndef bool */ +#endif /* not C++ */ + +#ifndef true +#define true ((bool) 1) +#endif +#ifndef false +#define bool char +#endif /* ndef bool */ +#endif /* __BEOS__ */ + +#ifndef TRUE +#define TRUE 1 +#endif /* TRUE */ + +#ifndef FALSE +#define FALSE 0 +#endif /* FALSE */ #ifdef __cplusplus extern "C" |