зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
625a75a2ea
Коммит
0ce7f24dc5
|
@ -69,6 +69,7 @@ static PRBool gIsWIN95OR98 = NOT_SETUP;
|
||||||
|
|
||||||
PRBool IsWin95OrWin98()
|
PRBool IsWin95OrWin98()
|
||||||
{
|
{
|
||||||
|
#ifndef WINCE
|
||||||
if (NOT_SETUP == gIsWIN95OR98) {
|
if (NOT_SETUP == gIsWIN95OR98) {
|
||||||
OSVERSIONINFO os;
|
OSVERSIONINFO os;
|
||||||
os.dwOSVersionInfoSize = sizeof(os);
|
os.dwOSVersionInfoSize = sizeof(os);
|
||||||
|
@ -82,6 +83,9 @@ PRBool IsWin95OrWin98()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return gIsWIN95OR98;
|
return gIsWIN95OR98;
|
||||||
|
#else
|
||||||
|
return PR_FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
extern PRBool UseAFunctions();
|
extern PRBool UseAFunctions();
|
||||||
|
|
|
@ -82,6 +82,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPrintSession, Init)
|
||||||
PRBool
|
PRBool
|
||||||
UseAFunctions()
|
UseAFunctions()
|
||||||
{
|
{
|
||||||
|
#ifndef WINCE
|
||||||
static PRBool useAFunctions = PR_FALSE;
|
static PRBool useAFunctions = PR_FALSE;
|
||||||
static PRBool init = PR_FALSE;
|
static PRBool init = PR_FALSE;
|
||||||
if (!init) {
|
if (!init) {
|
||||||
|
@ -98,6 +99,9 @@ UseAFunctions()
|
||||||
}
|
}
|
||||||
|
|
||||||
return useAFunctions;
|
return useAFunctions;
|
||||||
|
#else
|
||||||
|
return PR_FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static NS_IMETHODIMP
|
static NS_IMETHODIMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче