If XP_MAC and NECKO are defined, we include nsJSProtocolHandler.cpp instead of using the rest of this file. This is to work around the fact we can't conditionally link against files without creating addition targets in the project. Once NECKO has landed, I'll change the project file and jsurl.cpp will go away.

This commit is contained in:
gordon%netscape.com 1999-07-23 05:23:00 +00:00
parent b9eb79032b
commit 892efccd4f

View File

@ -17,6 +17,9 @@
*/
/* Code liberally stolen from mkmocha.h */
#if defined(XP_MAC) && defined(NECKO)
#include "nsJSProtocolHandler.cpp"
#else
#include "xp.h"
#include "plstr.h"
@ -450,3 +453,6 @@ NET_InitJavaScriptProtocol(void)
NET_RegisterProtocolImplementation(&mocha_proto_impl, MOCHA_TYPE_URL);
#endif
}
#endif /* XP_MAC && NECKO */