Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit04a87ae

Browse files
committed
In imath.h, replace stdint.h usage with c.h equivalents.
As things stood, buildfarm member dory failed. MSVC versions lackingstdint.h are unusable for building PostgreSQL, but pg_config.h.win32doesn't know that. Even so, we support other systems lacking stdint.h,including buildfarm member gaur. Per a suggestion from Tom Lane.Discussion:https://postgr.es/m/9598.1550353336@sss.pgh.pa.us
1 parent6ee8995 commit04a87ae

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

‎contrib/pgcrypto/imath.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* - #undef MIN, #undef MAX before defining them
1717
* - remove includes covered by c.h
1818
* - rename DEBUG to IMATH_DEBUG
19+
* - replace stdint.h usage with c.h equivalents
1920
*
2021
* 2. Download a newer imath.c and imath.h. Transform them like in step 1.
2122
* Apply to these files the diff you saved in step 1. Look for new lines

‎contrib/pgcrypto/imath.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ typedef long mp_small;/* must be a signed type */
3636
typedefunsigned longmp_usmall;/* must be an unsigned type */
3737

3838

39-
/* Build with words asuint64_t by default. */
39+
/* Build with words asuint64 by default. */
4040
#ifdefUSE_32BIT_WORDS
41-
typedefuint16_tmp_digit;
42-
typedefuint32_tmp_word;
43-
#defineMP_DIGIT_MAX (UINT16_MAX * 1UL)
44-
#defineMP_WORD_MAX (UINT32_MAX * 1UL)
41+
typedefuint16mp_digit;
42+
typedefuint32mp_word;
43+
#defineMP_DIGIT_MAX (PG_UINT16_MAX * 1UL)
44+
#defineMP_WORD_MAX (PG_UINT32_MAX * 1UL)
4545
#else
46-
typedefuint32_tmp_digit;
47-
typedefuint64_tmp_word;
48-
#defineMP_DIGIT_MAX (UINT32_MAX *UINT64_C(1))
49-
#defineMP_WORD_MAX (UINT64_MAX)
46+
typedefuint32mp_digit;
47+
typedefuint64mp_word;
48+
#defineMP_DIGIT_MAX (PG_UINT32_MAX *UINT64CONST(1))
49+
#defineMP_WORD_MAX (PG_UINT64_MAX)
5050
#endif
5151

5252
typedefstruct

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp