mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
Remove traces of BeOS.
Commit15abc7788etolerated namespace pollution from BeOS system headers. Commit44f902122de-supported BeOS. Since that stuff didn't make it into the Meson build system, synchronize by removing from configure. Author: Thomas Munro <thomas.munro@gmail.com> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Japin Li <japinli@hotmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> (the idea, not the patch) Discussion: https://postgr.es/m/ME3P282MB3166F9D1F71F787929C0C7E7B6312%40ME3P282MB3166.AUSP282.PROD.OUTLOOK.COM
This commit is contained in:
@@ -491,11 +491,9 @@ typedef char *Pointer;
|
||||
* used for numerical computations and the
|
||||
* frontend/backend protocol.
|
||||
*/
|
||||
#ifndef HAVE_INT8
|
||||
typedef signed char int8; /* == 8 bits */
|
||||
typedef signed short int16; /* == 16 bits */
|
||||
typedef signed int int32; /* == 32 bits */
|
||||
#endif /* not HAVE_INT8 */
|
||||
|
||||
/*
|
||||
* uintN
|
||||
@@ -503,11 +501,9 @@ typedef signed int int32; /* == 32 bits */
|
||||
* used for numerical computations and the
|
||||
* frontend/backend protocol.
|
||||
*/
|
||||
#ifndef HAVE_UINT8
|
||||
typedef unsigned char uint8; /* == 8 bits */
|
||||
typedef unsigned short uint16; /* == 16 bits */
|
||||
typedef unsigned int uint32; /* == 32 bits */
|
||||
#endif /* not HAVE_UINT8 */
|
||||
|
||||
/*
|
||||
* bitsN
|
||||
@@ -523,23 +519,15 @@ typedef uint32 bits32; /* >= 32 bits */
|
||||
#ifdef HAVE_LONG_INT_64
|
||||
/* Plain "long int" fits, use it */
|
||||
|
||||
#ifndef HAVE_INT64
|
||||
typedef long int int64;
|
||||
#endif
|
||||
#ifndef HAVE_UINT64
|
||||
typedef unsigned long int uint64;
|
||||
#endif
|
||||
#define INT64CONST(x) (x##L)
|
||||
#define UINT64CONST(x) (x##UL)
|
||||
#elif defined(HAVE_LONG_LONG_INT_64)
|
||||
/* We have working support for "long long int", use that */
|
||||
|
||||
#ifndef HAVE_INT64
|
||||
typedef long long int int64;
|
||||
#endif
|
||||
#ifndef HAVE_UINT64
|
||||
typedef unsigned long long int uint64;
|
||||
#endif
|
||||
#define INT64CONST(x) (x##LL)
|
||||
#define UINT64CONST(x) (x##ULL)
|
||||
#else
|
||||
|
||||
@@ -199,12 +199,6 @@
|
||||
/* Define to 1 if you have the `inet_pton' function. */
|
||||
#undef HAVE_INET_PTON
|
||||
|
||||
/* Define to 1 if the system has the type `int64'. */
|
||||
#undef HAVE_INT64
|
||||
|
||||
/* Define to 1 if the system has the type `int8'. */
|
||||
#undef HAVE_INT8
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
@@ -457,12 +451,6 @@
|
||||
/* Define to 1 if you have the <ucred.h> header file. */
|
||||
#undef HAVE_UCRED_H
|
||||
|
||||
/* Define to 1 if the system has the type `uint64'. */
|
||||
#undef HAVE_UINT64
|
||||
|
||||
/* Define to 1 if the system has the type `uint8'. */
|
||||
#undef HAVE_UINT8
|
||||
|
||||
/* Define to 1 if the system has the type `union semun'. */
|
||||
#undef HAVE_UNION_SEMUN
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
/* Define to 1 to build client libraries as thread-safe code. */
|
||||
#define ENABLE_THREAD_SAFETY 1
|
||||
|
||||
/* Define to 1 if the system has the type `int64'. */
|
||||
#undef HAVE_INT64
|
||||
|
||||
/* Define to 1 if `long int' works and is 64 bits. */
|
||||
#undef HAVE_LONG_INT_64
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
ecpg_inc = include_directories('.')
|
||||
|
||||
ecpg_conf_keys = [
|
||||
'HAVE_INT64',
|
||||
'HAVE_LONG_INT_64',
|
||||
'HAVE_LONG_LONG_INT_64',
|
||||
'PG_USE_STDBOOL',
|
||||
|
||||
@@ -9,13 +9,9 @@
|
||||
#ifndef C_H
|
||||
|
||||
#ifdef HAVE_LONG_INT_64
|
||||
#ifndef HAVE_INT64
|
||||
typedef long int int64;
|
||||
#endif
|
||||
#elif defined(HAVE_LONG_LONG_INT_64)
|
||||
#ifndef HAVE_INT64
|
||||
typedef long long int int64;
|
||||
#endif
|
||||
#else
|
||||
/* neither HAVE_LONG_INT_64 nor HAVE_LONG_LONG_INT_64 */
|
||||
#error must have a working 64-bit integer datatype
|
||||
|
||||
Reference in New Issue
Block a user