diff --git a/widget/src/mac/nsAppShell.cpp b/widget/src/mac/nsAppShell.cpp index d5fccf4a2d11..32adb30d41dd 100644 --- a/widget/src/mac/nsAppShell.cpp +++ b/widget/src/mac/nsAppShell.cpp @@ -191,10 +191,14 @@ nsresult nsAppShell::DispatchNativeEvent(void * aEvent) NS_METHOD nsAppShell::GetSelectionMgr(nsISelectionMgr** aSelectionMgr) { +#ifdef USE_SELECTION_MGR *aSelectionMgr = mSelectionMgr; NS_IF_ADDREF(mSelectionMgr); if (!mSelectionMgr) return NS_ERROR_NOT_INITIALIZED; return NS_OK; +#else /* USE_SELECTION_MGR */ + return NS_ERROR_NOT_IMPLEMENTED; +#endif /* USE_SELECTION_MGR */ }