diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/pg_config.h.in | 3 | ||||
-rw-r--r-- | src/interfaces/ecpg/ecpglib/extern.h | 7 | ||||
-rw-r--r-- | src/interfaces/ecpg/include/ecpg_config.h.in | 3 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/ecpg.header | 8 |
4 files changed, 9 insertions, 12 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index a54cae309b6..0d564b87de7 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -330,6 +330,9 @@ /* Define to 1 if `long int' works and is 64 bits. */ #undef HAVE_LONG_INT_64 +/* Define to 1 if the C compiler does understand long long type. */ +#undef HAVE_LONG_LONG + /* Define to 1 if `long long int' works and is 64 bits. */ #undef HAVE_LONG_LONG_INT_64 diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h index d42e9295951..1e8f18f965c 100644 --- a/src/interfaces/ecpg/ecpglib/extern.h +++ b/src/interfaces/ecpg/ecpglib/extern.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.40 2010/05/20 22:10:45 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.41 2010/05/25 14:32:55 meskes Exp $ */ #ifndef _ECPG_LIB_EXTERN_H #define _ECPG_LIB_EXTERN_H @@ -13,11 +13,6 @@ #include <limits.h> #endif -/* Do we know the C99 data type "long long"? */ -#if defined(LLONG_MIN) || defined(LONGLONG_MIN) || defined(HAVE_LONG_LONG_INT_64) -#define HAVE_LONG_LONG 1 -#endif - enum COMPAT_MODE { ECPG_COMPAT_PGSQL = 0, ECPG_COMPAT_INFORMIX, ECPG_COMPAT_INFORMIX_SE diff --git a/src/interfaces/ecpg/include/ecpg_config.h.in b/src/interfaces/ecpg/include/ecpg_config.h.in index 52ed8c81736..5ee42c8ab7d 100644 --- a/src/interfaces/ecpg/include/ecpg_config.h.in +++ b/src/interfaces/ecpg/include/ecpg_config.h.in @@ -15,3 +15,6 @@ * (--enable-thread-safety) */ #undef ENABLE_THREAD_SAFETY +/* Define to 1 if the C compiler does understand long long type. */ +#undef HAVE_LONG_LONG + diff --git a/src/interfaces/ecpg/preproc/ecpg.header b/src/interfaces/ecpg/preproc/ecpg.header index 848a3a23dc9..3398f004cf4 100644 --- a/src/interfaces/ecpg/preproc/ecpg.header +++ b/src/interfaces/ecpg/preproc/ecpg.header @@ -1,17 +1,13 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.15 2010/05/20 22:10:46 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.16 2010/05/25 14:32:55 meskes Exp $ */ /* Copyright comment */ %{ #include "postgres_fe.h" #include "extern.h" +#include "ecpg_config.h" #include <unistd.h> -/* Do we know the C99 datatype "long long"? */ -#if defined(LLONG_MIN) || defined(LONGLONG_MIN) || defined(HAVE_LONG_LONG_INT_64) -#define HAVE_LONG_LONG 1 -#endif - /* Location tracking support --- simpler than bison's default */ #define YYLLOC_DEFAULT(Current, Rhs, N) \ do { \ |