From ade40bd579d47ea88bbb8778bd3cac122e4e8270 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Thu, 30 Jan 2003 18:52:33 +0000 Subject: [PATCH] OS/2 bustage - just define HIBYTE and LOBYTE for any platform that doesn't have them git-svn-id: svn://10.0.0.236/trunk@137146 18797224-902f-48f8-a5cc-f745e15eee43 --- .../plugin/tools/sdk/samples/include/npplat.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mozilla/modules/plugin/tools/sdk/samples/include/npplat.h b/mozilla/modules/plugin/tools/sdk/samples/include/npplat.h index f2aa9733414..d78ba51e80c 100644 --- a/mozilla/modules/plugin/tools/sdk/samples/include/npplat.h +++ b/mozilla/modules/plugin/tools/sdk/samples/include/npplat.h @@ -57,10 +57,6 @@ /**************************************************/ #ifdef XP_UNIX #include - -#define HIBYTE(i) (i >> 8) -#define LOBYTE(i) (i & 0xff) - #endif //XP_UNIX /**************************************************/ @@ -79,9 +75,6 @@ #include "jri.h" -#define HIBYTE(i) (i >> 8) -#define LOBYTE(i) (i & 0xff) - // The Mixed Mode procInfos defined in npupp.h assume Think C- // style calling conventions. These conventions are used by // Metrowerks with the exception of pointer return types, which @@ -146,4 +139,12 @@ NPError Private_SetValue(NPP instance, NPNVariable variable, void *value); #endif //XP_MAC +#ifndef HIBYTE +#define HIBYTE(i) (i >> 8) +#endif + +#ifndef LOBYTE +#define LOBYTE(i) (i & 0xff) +#endif + #endif //_NPPLAT_H_