Backed out changeset b0a4653325cc (bug 941565) for Windows bustage.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2013-11-22 10:56:15 -05:00
Родитель 3a5430ba7c
Коммит 99d738b533
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -809,16 +809,17 @@ bool DefineOSFileConstants(JSContext *cx, JS::Handle<JSObject*> global)
}
// Locate libxul
// Note that we don't actually provide the full path, only the name of the
// library, which is sufficient to link to the library using js-ctypes.
{
nsAutoString xulPath(gPaths->libDir);
xulPath.Append(PR_GetDirectorySeparator());
#if defined(XP_MACOSX)
// Under MacOS X, for some reason, libxul is called simply "XUL"
nsAutoString xulPath(NS_LITERAL_STRING("XUL"));
xulPath.Append(NS_LITERAL_STRING("XUL"));
#else
// On other platforms, libxul is a library "xul" with regular
// library prefix/suffix
nsAutoString xulPath();
xulPath.Append(NS_LITERAL_STRING(DLL_PREFIX));
xulPath.Append(NS_LITERAL_STRING("xul"));
xulPath.Append(NS_LITERAL_STRING(DLL_SUFFIX));