bug 297683. more windows ce love. This patch just shortcuts two functions which are always the same value on wince. r/sr=dveditz a=asa

This commit is contained in:
dougt%meer.net 2005-08-08 20:05:13 +00:00
Родитель 75c5d5ba8e
Коммит 24554781a0
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -69,6 +69,7 @@ static PRBool gIsWIN95OR98 = NOT_SETUP;
PRBool IsWin95OrWin98()
{
#ifndef WINCE
if (NOT_SETUP == gIsWIN95OR98) {
OSVERSIONINFO os;
os.dwOSVersionInfoSize = sizeof(os);
@ -82,6 +83,9 @@ PRBool IsWin95OrWin98()
}
}
return gIsWIN95OR98;
#else
return PR_FALSE;
#endif
}
extern PRBool UseAFunctions();

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

@ -82,6 +82,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPrintSession, Init)
PRBool
UseAFunctions()
{
#ifndef WINCE
static PRBool useAFunctions = PR_FALSE;
static PRBool init = PR_FALSE;
if (!init) {
@ -98,6 +99,9 @@ UseAFunctions()
}
return useAFunctions;
#else
return PR_FALSE;
#endif
}
static NS_IMETHODIMP