File tree 5 files changed +6
-49
lines changed
5 files changed +6
-49
lines changed Original file line number Diff line number Diff line change 31
31
*/
32
32
#include "postgres.h"
33
33
34
+ #include <limits.h>
35
+
34
36
#include "libpq-fe.h"
35
37
#include "fmgr.h"
36
38
#include "funcapi.h"
@@ -1112,9 +1114,6 @@ dblink_get_pkey(PG_FUNCTION_ARGS)
1112
1114
}
1113
1115
1114
1116
1115
- #ifndef SHRT_MAX
1116
- #define SHRT_MAX (0x7FFF)
1117
- #endif
1118
1117
/*
1119
1118
* dblink_build_sql_insert
1120
1119
*
Original file line number Diff line number Diff line change 9
9
*
10
10
*
11
11
* IDENTIFICATION
12
- * $PostgreSQL: pgsql/src/backend/utils/adt/char.c,v 1.44 2006/03/05 15:58:41 momjian Exp $
12
+ * $PostgreSQL: pgsql/src/backend/utils/adt/char.c,v 1.45 2006/03/11 01:19:22 neilc Exp $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
20
20
#include "libpq/pqformat.h"
21
21
#include "utils/builtins.h"
22
22
23
- #ifndef SCHAR_MAX
24
- #define SCHAR_MAX (0x7F)
25
- #endif
26
- #ifndef SCHAR_MIN
27
- #define SCHAR_MIN (-SCHAR_MAX-1)
28
- #endif
29
-
30
-
31
23
/*****************************************************************************
32
24
* USER I/O ROUTINES *
33
25
*****************************************************************************/
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.122 2006/03/10 20:15:25 neilc Exp $
11
+ * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.123 2006/03/11 01:19:22 neilc Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
74
74
#define M_PI 3.14159265358979323846
75
75
#endif
76
76
77
- #ifndef SHRT_MAX
78
- #define SHRT_MAX 32767
79
- #endif
80
- #ifndef SHRT_MIN
81
- #define SHRT_MIN (-32768)
82
- #endif
83
-
84
77
/* Recent HPUXen have isfinite() macro in place of more standard finite() */
85
78
#if !defined(HAVE_FINITE ) && defined(isfinite )
86
79
#define finite (x ) isfinite(x)
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.71 2006/03/05 15:58:42 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.72 2006/03/11 01:19:22 neilc Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
40
40
#include "utils/builtins.h"
41
41
42
42
43
- #ifndef SHRT_MAX
44
- #define SHRT_MAX (0x7FFF)
45
- #endif
46
- #ifndef SHRT_MIN
47
- #define SHRT_MIN (-0x8000)
48
- #endif
49
-
50
43
#define SAMESIGN (a ,b ) (((a) < 0) == ((b) < 0))
51
44
52
45
#define Int2VectorSize (n ) (offsetof(int2vector, values) + (n) * sizeof(int2))
Original file line number Diff line number Diff line change 10
10
*
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/utils/adt/numutils.c,v 1.73 2006/03/05 15:58:43 momjian Exp $
13
+ * $PostgreSQL: pgsql/src/backend/utils/adt/numutils.c,v 1.74 2006/03/11 01:19:22 neilc Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
22
22
23
23
#include "utils/builtins.h"
24
24
25
- #ifndef INT_MAX
26
- #define INT_MAX (0x7FFFFFFFL)
27
- #endif
28
- #ifndef INT_MIN
29
- #define INT_MIN (-INT_MAX-1)
30
- #endif
31
- #ifndef SHRT_MAX
32
- #define SHRT_MAX (0x7FFF)
33
- #endif
34
- #ifndef SHRT_MIN
35
- #define SHRT_MIN (-SHRT_MAX-1)
36
- #endif
37
- #ifndef SCHAR_MAX
38
- #define SCHAR_MAX (0x7F)
39
- #endif
40
- #ifndef SCHAR_MIN
41
- #define SCHAR_MIN (-SCHAR_MAX-1)
42
- #endif
43
-
44
-
45
25
/*
46
26
* pg_atoi: convert string to integer
47
27
*
You can’t perform that action at this time.
0 commit comments