Commit 3a8f67d0 authored by Bruce Momjian's avatar Bruce Momjian

Fix compile problem with Win32 macro used inside another macro.

parent d46e6438
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment