From 201d6cafda5cf145ab97a1ebba59af3dde802802 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Sat, 19 Sep 1998 06:21:01 +0000 Subject: [PATCH] Adding support for non-X11 Unix systems git-svn-id: svn://10.0.0.236/trunk@10488 18797224-902f-48f8-a5cc-f745e15eee43 --- .../modules/plugin/base/public/nsplugindefs.h | 16 ++++++++++++---- mozilla/modules/plugin/public/nsplugindefs.h | 16 ++++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/mozilla/modules/plugin/base/public/nsplugindefs.h b/mozilla/modules/plugin/base/public/nsplugindefs.h index 6c93474da56..d807841e1c6 100644 --- a/mozilla/modules/plugin/base/public/nsplugindefs.h +++ b/mozilla/modules/plugin/base/public/nsplugindefs.h @@ -48,7 +48,7 @@ # include #endif -#ifdef XP_UNIX +#if defined(XP_UNIX) && !defined(NO_X11) # include # include #endif @@ -149,6 +149,7 @@ struct nsPluginAnyCallbackStruct { PRInt32 type; }; +#ifndef NO_X11 struct nsPluginSetWindowCallbackStruct { PRInt32 type; Display* display; @@ -156,6 +157,12 @@ struct nsPluginSetWindowCallbackStruct { Colormap colormap; PRUint32 depth; }; +#else +struct nsPluginSetWindowCallbackStruct { + PRInt32 type; +}; +#endif + struct nsPluginPrintCallbackStruct { PRInt32 type; @@ -228,7 +235,7 @@ struct nsPluginPort; typedef HRGN nsPluginRegion; typedef HWND nsPluginPlatformWindowRef; -#elif defined(XP_UNIX) +#elif defined(XP_UNIX) && !defined(NO_X11) struct nsPluginPort; typedef Region nsPluginRegion; @@ -296,9 +303,10 @@ struct nsPluginEvent { uint32 wParam; uint32 lParam; -#elif defined(XP_UNIX) +#elif defined(XP_UNIX) && !defined(NO_X11) XEvent event; - +#else + void *event; #endif }; diff --git a/mozilla/modules/plugin/public/nsplugindefs.h b/mozilla/modules/plugin/public/nsplugindefs.h index 6c93474da56..d807841e1c6 100644 --- a/mozilla/modules/plugin/public/nsplugindefs.h +++ b/mozilla/modules/plugin/public/nsplugindefs.h @@ -48,7 +48,7 @@ # include #endif -#ifdef XP_UNIX +#if defined(XP_UNIX) && !defined(NO_X11) # include # include #endif @@ -149,6 +149,7 @@ struct nsPluginAnyCallbackStruct { PRInt32 type; }; +#ifndef NO_X11 struct nsPluginSetWindowCallbackStruct { PRInt32 type; Display* display; @@ -156,6 +157,12 @@ struct nsPluginSetWindowCallbackStruct { Colormap colormap; PRUint32 depth; }; +#else +struct nsPluginSetWindowCallbackStruct { + PRInt32 type; +}; +#endif + struct nsPluginPrintCallbackStruct { PRInt32 type; @@ -228,7 +235,7 @@ struct nsPluginPort; typedef HRGN nsPluginRegion; typedef HWND nsPluginPlatformWindowRef; -#elif defined(XP_UNIX) +#elif defined(XP_UNIX) && !defined(NO_X11) struct nsPluginPort; typedef Region nsPluginRegion; @@ -296,9 +303,10 @@ struct nsPluginEvent { uint32 wParam; uint32 lParam; -#elif defined(XP_UNIX) +#elif defined(XP_UNIX) && !defined(NO_X11) XEvent event; - +#else + void *event; #endif };