Implement compatibility wrapper so that binary components can be compatible with both Firefox 3.6 and Firefox 4, as a result of registration changes from bug 568691.
This commit is contained in:
@@ -101,3 +101,9 @@ static const mozilla::Module kSampleModule = {
|
||||
// The following line implements the one-and-only "NSModule" symbol exported from this
|
||||
// shared library.
|
||||
NSMODULE_DEFN(nsSampleModule) = &kSampleModule;
|
||||
|
||||
// The following line implements the one-and-only "NSGetModule" symbol
|
||||
// for compatibility with mozilla 1.9.2. You should only use this
|
||||
// if you need a binary which is backwards-compatible and if you use
|
||||
// interfaces carefully across multiple versions.
|
||||
NS_IMPL_MOZILLA192_NSGETMODULE(&kSampleModule)
|
||||
|
||||
Reference in New Issue
Block a user