Fix compile problem with Win32 macro used inside another macro.

This commit is contained in:
Bruce Momjian 2003-04-05 19:54:12 +00:00
parent d46e643822
commit 3a8f67d091

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.58 2003/04/04 20:42:12 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.59 2003/04/05 19:54:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -326,13 +326,11 @@ substitute_libpath_macro(const char *name)
if (name[0] != '$')
return pstrdup(name);
macroname_len = strcspn(name + 1,
#ifndef WIN32
"/"
macroname_len = strcspn(name + 1, "/") + 1;
#else
"/\\"
macroname_len = strcspn(name + 1, "/\\") + 1;
#endif
) + 1;
if (strncmp(name, "$libdir", macroname_len) == 0)
replacement = PKGLIBDIR;