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

Commit3a8f67d

Browse files
committed
Fix compile problem with Win32 macro used inside another macro.
1 parentd46e643 commit3a8f67d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/backend/utils/fmgr/dfmgr.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.58 2003/04/04 20:42:12 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.59 2003/04/05 19:54:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -326,13 +326,11 @@ substitute_libpath_macro(const char *name)
326326
if (name[0]!='$')
327327
returnpstrdup(name);
328328

329-
macroname_len=strcspn(name+1,
330329
#ifndefWIN32
331-
"/"
330+
macroname_len=strcspn(name+1,"/")+1;
332331
#else
333-
"/\\"
332+
macroname_len=strcspn(name+1,"/\\")+1;
334333
#endif
335-
)+1;
336334

337335
if (strncmp(name,"$libdir",macroname_len)==0)
338336
replacement=PKGLIBDIR;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp