r=mccabe use NS_NewTimer stuff only on Win32 in this test code. This avoids Unix build order problems that were keeping the xpconnect test components from working at all.

This commit is contained in:
jband%netscape.com 1999-11-02 23:35:54 +00:00
parent bee74e223b
commit 4c95be4d6a

View File

@ -409,11 +409,19 @@ xpctestEcho::ThrowArg(void)
NS_IMETHODIMP
xpctestEcho::CallReceiverSometimeLater(void)
{
// Mac does not even compile this code and Unix build systems
// have build order problems with linking to the static timer lib
// as it is built today. This is only test code and we can stand to
// have it only work on Win32 for now.
#ifdef WIN32
nsITimer *timer;
if(NS_FAILED(NS_NewTimer(&timer)))
return NS_ERROR_FAILURE;
timer->Init(NS_STATIC_CAST(nsITimerCallback*,this), 2000);
return NS_OK;
#else
return NS_ERROR_NOT_IMPLEMENTED;
#endif
}
void