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

Commit3fdd33a

Browse files
committed
Avoid macro-redefinition warnings on Windows, per Andrew Dunstan.
1 parent380bd04 commit3fdd33a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎contrib/tsearch2/rewrite.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ clean_NOT_v2(ITEM * ptr, int4 *len)
174174
returnplaintree(clean_NOT_intree(root),len);
175175
}
176176

177+
178+
#ifdefV_UNKNOWN/* exists in Windows headers */
179+
#undef V_UNKNOWN
180+
#endif
181+
177182
#defineV_UNKNOWN0
178183
#defineV_TRUE1
179184
#defineV_FALSE2

‎contrib/tsearch2/wparser_def.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ prsd_end(PG_FUNCTION_ARGS)
7676
#defineENDPUNCTOKEN(x) ( (x)==12 )
7777

7878

79-
#defineIDIGNORE(x) ( (x)==13 || (x)==14 || (x)==12 || (x)==23 )
79+
#defineTS_IDIGNORE(x) ( (x)==13 || (x)==14 || (x)==12 || (x)==23 )
8080
#defineHLIDIGNORE(x) ( (x)==5 || (x)==13 || (x)==15 || (x)==16 || (x)==17 )
8181
#defineHTMLHLIDIGNORE(x) ( (x)==5 || (x)==15 || (x)==16 || (x)==17 )
8282
#defineNONWORDTOKEN(x) ( (x)==12 || HLIDIGNORE(x) )
83-
#defineNOENDTOKEN(x)( NONWORDTOKEN(x) || (x)==7 || (x)==8 || (x)==20 || (x)==21 || (x)==22 ||IDIGNORE(x) )
83+
#defineNOENDTOKEN(x)( NONWORDTOKEN(x) || (x)==7 || (x)==8 || (x)==20 || (x)==21 || (x)==22 ||TS_IDIGNORE(x) )
8484

8585
typedefstruct
8686
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp