mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
comment out some stuff when TARGET_CARBON is defined. Doesn't affect normal builds.
This commit is contained in:
parent
113b4f5b1d
commit
30797a08f1
@ -48,6 +48,10 @@ ns4xPlugin::CheckClassInitialized(void)
|
||||
CALLBACKS.size = sizeof(CALLBACKS);
|
||||
CALLBACKS.version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR;
|
||||
|
||||
#if !TARGET_CARBON
|
||||
// pinkerton - these macros rely on BuildRoutineDescriptor(), which is no longer in
|
||||
// Carbon. Our easy solution to this is to drop support for 68K plugins. Now we just
|
||||
// need to do the work...
|
||||
CALLBACKS.geturl = NewNPN_GetURLProc(_geturl);
|
||||
CALLBACKS.posturl = NewNPN_PostURLProc(_posturl);
|
||||
CALLBACKS.requestread = NewNPN_RequestReadProc(_requestread);
|
||||
@ -69,6 +73,7 @@ ns4xPlugin::CheckClassInitialized(void)
|
||||
CALLBACKS.invalidaterect = NewNPN_InvalidateRectProc(_invalidaterect);
|
||||
CALLBACKS.invalidateregion = NewNPN_InvalidateRegionProc(_invalidateregion);
|
||||
CALLBACKS.forceredraw = NewNPN_ForceRedrawProc(_forceredraw);
|
||||
#endif
|
||||
|
||||
initialized = TRUE;
|
||||
};
|
||||
|
@ -48,6 +48,10 @@ ns4xPlugin::CheckClassInitialized(void)
|
||||
CALLBACKS.size = sizeof(CALLBACKS);
|
||||
CALLBACKS.version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR;
|
||||
|
||||
#if !TARGET_CARBON
|
||||
// pinkerton - these macros rely on BuildRoutineDescriptor(), which is no longer in
|
||||
// Carbon. Our easy solution to this is to drop support for 68K plugins. Now we just
|
||||
// need to do the work...
|
||||
CALLBACKS.geturl = NewNPN_GetURLProc(_geturl);
|
||||
CALLBACKS.posturl = NewNPN_PostURLProc(_posturl);
|
||||
CALLBACKS.requestread = NewNPN_RequestReadProc(_requestread);
|
||||
@ -69,6 +73,7 @@ ns4xPlugin::CheckClassInitialized(void)
|
||||
CALLBACKS.invalidaterect = NewNPN_InvalidateRectProc(_invalidaterect);
|
||||
CALLBACKS.invalidateregion = NewNPN_InvalidateRegionProc(_invalidateregion);
|
||||
CALLBACKS.forceredraw = NewNPN_ForceRedrawProc(_forceredraw);
|
||||
#endif
|
||||
|
||||
initialized = TRUE;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user