mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 03:49:37 +00:00
# 25555
r= beard@netscape.com OS/2 changes for Mozilla - add #ifdef, change #ifdef
This commit is contained in:
parent
35f9400d4f
commit
5eb928c520
@ -38,12 +38,15 @@
|
||||
#ifndef nsplugindefs_h___
|
||||
#define nsplugindefs_h___
|
||||
|
||||
#ifndef prtypes_h___
|
||||
#include "prtypes.h"
|
||||
#if defined(XP_OS2) || defined(__OS2__)
|
||||
#pragma pack(1)
|
||||
#define INCL_BASE
|
||||
#define INCL_PM
|
||||
#include <os2.h>
|
||||
#endif
|
||||
|
||||
#ifdef __OS2__
|
||||
#pragma pack(1)
|
||||
#ifndef prtypes_h___
|
||||
#include "prtypes.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_MAC
|
||||
@ -57,7 +60,7 @@
|
||||
# include <X11/Xutil.h>
|
||||
#endif
|
||||
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) && !defined(XP_OS2)
|
||||
# include <windef.h>
|
||||
#endif
|
||||
|
||||
@ -297,13 +300,13 @@ struct nsPluginEvent {
|
||||
EventRecord* event;
|
||||
nsPluginPlatformWindowRef window;
|
||||
|
||||
#elif defined(XP_PC)
|
||||
uint16 event;
|
||||
#elif defined(XP_OS2)
|
||||
uint32 event;
|
||||
uint32 wParam;
|
||||
uint32 lParam;
|
||||
|
||||
#elif defined(XP_OS2)
|
||||
uint32 event;
|
||||
#elif defined(XP_PC)
|
||||
uint16 event;
|
||||
uint32 wParam;
|
||||
uint32 lParam;
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
#include "nsDiskModule.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) && !defined(XP_OS2)
|
||||
#include "windows.h"
|
||||
#include "winbase.h"
|
||||
#endif
|
||||
|
@ -39,7 +39,7 @@
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) && !defined(XP_OS2)
|
||||
#include "windows.h"
|
||||
#include "winbase.h"
|
||||
#endif
|
||||
@ -200,7 +200,11 @@ nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstance
|
||||
// open the file and prepare it for writing
|
||||
char buf[400], tpath[300];
|
||||
#ifdef XP_PC
|
||||
#ifdef XP_OS2
|
||||
PL_strcpy(tpath, getenv("TEMP"));
|
||||
#else
|
||||
::GetTempPath(sizeof(tpath), tpath);
|
||||
#endif
|
||||
PRInt32 len = PL_strlen(tpath);
|
||||
|
||||
if ((len > 0) && (tpath[len-1] != '\\'))
|
||||
|
@ -58,7 +58,7 @@
|
||||
#include "nsDiskModule.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) && !defined(XP_OS2)
|
||||
#include "windows.h"
|
||||
#include "winbase.h"
|
||||
#endif
|
||||
|
@ -39,7 +39,7 @@
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) && !defined(XP_OS2)
|
||||
#include "windows.h"
|
||||
#include "winbase.h"
|
||||
#endif
|
||||
@ -200,7 +200,11 @@ nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstance
|
||||
// open the file and prepare it for writing
|
||||
char buf[400], tpath[300];
|
||||
#ifdef XP_PC
|
||||
#ifdef XP_OS2
|
||||
PL_strcpy(tpath, getenv("TEMP"));
|
||||
#else
|
||||
::GetTempPath(sizeof(tpath), tpath);
|
||||
#endif
|
||||
PRInt32 len = PL_strlen(tpath);
|
||||
|
||||
if ((len > 0) && (tpath[len-1] != '\\'))
|
||||
|
@ -38,12 +38,15 @@
|
||||
#ifndef nsplugindefs_h___
|
||||
#define nsplugindefs_h___
|
||||
|
||||
#ifndef prtypes_h___
|
||||
#include "prtypes.h"
|
||||
#if defined(XP_OS2) || defined(__OS2__)
|
||||
#pragma pack(1)
|
||||
#define INCL_BASE
|
||||
#define INCL_PM
|
||||
#include <os2.h>
|
||||
#endif
|
||||
|
||||
#ifdef __OS2__
|
||||
#pragma pack(1)
|
||||
#ifndef prtypes_h___
|
||||
#include "prtypes.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_MAC
|
||||
@ -57,7 +60,7 @@
|
||||
# include <X11/Xutil.h>
|
||||
#endif
|
||||
|
||||
#ifdef XP_PC
|
||||
#if defined(XP_PC) && !defined(XP_OS2)
|
||||
# include <windef.h>
|
||||
#endif
|
||||
|
||||
@ -297,13 +300,13 @@ struct nsPluginEvent {
|
||||
EventRecord* event;
|
||||
nsPluginPlatformWindowRef window;
|
||||
|
||||
#elif defined(XP_PC)
|
||||
uint16 event;
|
||||
#elif defined(XP_OS2)
|
||||
uint32 event;
|
||||
uint32 wParam;
|
||||
uint32 lParam;
|
||||
|
||||
#elif defined(XP_OS2)
|
||||
uint32 event;
|
||||
#elif defined(XP_PC)
|
||||
uint16 event;
|
||||
uint32 wParam;
|
||||
uint32 lParam;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user