From efe6dfa795795df28211ef2ce612e5facf886fcf Mon Sep 17 00:00:00 2001 From: "pnunn%netscape.com" Date: Sat, 23 Oct 1999 00:10:14 +0000 Subject: [PATCH] fix for mac bustage. pnunn. git-svn-id: svn://10.0.0.236/trunk@51600 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libimg/gifcom/dllcompat.cpp | 6 +++++- mozilla/modules/libimg/jpgcom/dllcompat.cpp | 7 +++++++ mozilla/modules/libimg/pngcom/dllcompat.cpp | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/libimg/gifcom/dllcompat.cpp b/mozilla/modules/libimg/gifcom/dllcompat.cpp index 8c8efe8b63e..35e529b818d 100644 --- a/mozilla/modules/libimg/gifcom/dllcompat.cpp +++ b/mozilla/modules/libimg/gifcom/dllcompat.cpp @@ -34,7 +34,7 @@ the local dll. So far, #include "prmem.h" #include "nsCRT.h" - +#include "xp_mcom.h" PR_BEGIN_EXTERN_C int MK_UNABLE_TO_LOCATE_FILE = -1; @@ -67,6 +67,10 @@ PR_END_EXTERN_C #if defined(XP_MAC) +#ifndef UNIXMINUSMACTIME +#define UNIXMINUSMACTIME 2082844800UL +#endif + /* prototypes for local routines */ static void shortsort(char *lo, char *hi, unsigned width, int ( *comp)(const void *, const void *)); diff --git a/mozilla/modules/libimg/jpgcom/dllcompat.cpp b/mozilla/modules/libimg/jpgcom/dllcompat.cpp index d7301cd4c86..35e529b818d 100644 --- a/mozilla/modules/libimg/jpgcom/dllcompat.cpp +++ b/mozilla/modules/libimg/jpgcom/dllcompat.cpp @@ -34,6 +34,7 @@ the local dll. So far, #include "prmem.h" #include "nsCRT.h" +#include "xp_mcom.h" PR_BEGIN_EXTERN_C int MK_UNABLE_TO_LOCATE_FILE = -1; @@ -62,8 +63,14 @@ int XP_MSG_UNKNOWN = -26; int XP_MSG_COMPRESS_REMOVE = -27; PR_END_EXTERN_C + + #if defined(XP_MAC) +#ifndef UNIXMINUSMACTIME +#define UNIXMINUSMACTIME 2082844800UL +#endif + /* prototypes for local routines */ static void shortsort(char *lo, char *hi, unsigned width, int ( *comp)(const void *, const void *)); diff --git a/mozilla/modules/libimg/pngcom/dllcompat.cpp b/mozilla/modules/libimg/pngcom/dllcompat.cpp index 7bc6d028148..35e529b818d 100644 --- a/mozilla/modules/libimg/pngcom/dllcompat.cpp +++ b/mozilla/modules/libimg/pngcom/dllcompat.cpp @@ -34,6 +34,7 @@ the local dll. So far, #include "prmem.h" #include "nsCRT.h" +#include "xp_mcom.h" PR_BEGIN_EXTERN_C int MK_UNABLE_TO_LOCATE_FILE = -1; @@ -63,8 +64,13 @@ int XP_MSG_COMPRESS_REMOVE = -27; PR_END_EXTERN_C + #if defined(XP_MAC) +#ifndef UNIXMINUSMACTIME +#define UNIXMINUSMACTIME 2082844800UL +#endif + /* prototypes for local routines */ static void shortsort(char *lo, char *hi, unsigned width, int ( *comp)(const void *, const void *));