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 *));