Only build liveconnect methods if OJI is defined

This commit is contained in:
blizzard%appliedtheory.com 1998-09-22 02:26:12 +00:00
parent d8eb225619
commit 70bd5f5596

View File

@ -30,6 +30,7 @@
#ifdef OJI
#include "nsplugin.h"
#include "jvmmgr.h"
#include "nsILiveconnect.h"
#endif
#include "plstr.h" /* PL_strcasecmp */
@ -50,7 +51,6 @@
#include "nsMalloc.h"
#include "nsICapsManager.h"
#include "nsCCapsManager.h"
#include "nsILiveconnect.h"
#include "intl_csi.h"
@ -298,12 +298,12 @@ nsPluginManager::GetCapsManager(const nsIID& aIID)
return result;
}
#ifdef OJI
nsILiveconnect*
nsPluginManager::GetLiveconnect(const nsIID& aIID)
{
nsILiveconnect* result = NULL;
PRThread *threadAttached = NULL;
#ifdef OJI
nsresult err = NS_OK;
if (fLiveconnect == NULL) {
if ( PR_GetCurrentThread() == NULL )
@ -327,9 +327,9 @@ nsPluginManager::GetLiveconnect(const nsIID& aIID)
{
PR_DetachThread();
}
#endif
return result;
}
#endif