diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-11-07 13:30:04 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-11-07 13:30:04 +0100 |
commit | effa40281bb1f6c71e81c980f86852ab3be603c3 (patch) | |
tree | c5897e93b6abacc7dbc1df4b5acdf11654e2dab1 /src/interfaces/ecpg/ecpglib/misc.c | |
parent | 581a55889ba7f76dd87a270e37e5137f684bfdb7 (diff) |
Remove HAVE_LONG_LONG_INT
The presence of long long int is now implied in the requirement for
C99 and the configure check for the same.
We keep the define hard-coded in ecpg_config.h for backward
compatibility with ecpg-using user code.
Discussion: https://www.postgresql.org/message-id/flat/5cdd6a2b-b2c7-c6f6-344c-a406d5c1a254%402ndquadrant.com
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/misc.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/misc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c index 647da14fce4..c4b2183b5dd 100644 --- a/src/interfaces/ecpg/ecpglib/misc.c +++ b/src/interfaces/ecpg/ecpglib/misc.c @@ -18,7 +18,6 @@ #include "pg_config_paths.h" #include "sqlca.h" -#ifdef HAVE_LONG_LONG_INT #ifndef LONG_LONG_MIN #ifdef LLONG_MIN #define LONG_LONG_MIN LLONG_MIN @@ -26,7 +25,6 @@ #define LONG_LONG_MIN LONGLONG_MIN #endif /* LLONG_MIN */ #endif /* LONG_LONG_MIN */ -#endif /* HAVE_LONG_LONG_INT */ bool ecpg_internal_regression_mode = false; @@ -340,12 +338,10 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr) case ECPGt_date: *((long *) ptr) = LONG_MIN; break; -#ifdef HAVE_LONG_LONG_INT case ECPGt_long_long: case ECPGt_unsigned_long_long: *((long long *) ptr) = LONG_LONG_MIN; break; -#endif /* HAVE_LONG_LONG_INT */ case ECPGt_float: memset((char *) ptr, 0xff, sizeof(float)); break; @@ -415,13 +411,11 @@ ECPGis_noind_null(enum ECPGttype type, const void *ptr) if (*((const long *) ptr) == LONG_MIN) return true; break; -#ifdef HAVE_LONG_LONG_INT case ECPGt_long_long: case ECPGt_unsigned_long_long: if (*((const long long *) ptr) == LONG_LONG_MIN) return true; break; -#endif /* HAVE_LONG_LONG_INT */ case ECPGt_float: return _check(ptr, sizeof(float)); break; |