Making it compile on the Mac

This commit is contained in:
atotic 1998-06-24 01:43:10 +00:00
parent f125653c3e
commit 839a796540
2 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,11 @@
*/
#include <stdio.h>
#ifdef XP_MAC
#include <stdlib.h>
#else
#include <malloc.h>
#endif
#include "nsViewer.h"
#include "resources.h" // #defines ID's for menu items

View File

@ -152,8 +152,8 @@ class nsViewer : public nsDispatchListener {
virtual nsDocLoader* SetupViewer(nsIWidget **aMainWindow,int argc, char **argv);
virtual void CleanupViewer(nsDocLoader* aDl);
virtual nsEventStatus DispatchMenuItem(nsGUIEvent *aEvent);
virtual nsEventStatus nsViewer::DispatchMenuItem(PRUint32 aId);
virtual nsEventStatus nsViewer::ProcessMenu(PRUint32 aId, WindowData* wd);
virtual nsEventStatus DispatchMenuItem(PRUint32 aId);
virtual nsEventStatus ProcessMenu(PRUint32 aId, WindowData* wd);
virtual nsresult ShowPrintPreview(nsIWebWidget* web, PRIntn aColumns);
virtual WindowData* CreateTopLevel(const char* title, int aWidth, int aHeight);