summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdagley%netscape.com <devnull@localhost>2001-05-06 22:43:10 +0000
committersdagley%netscape.com <devnull@localhost>2001-05-06 22:43:10 +0000
commit20da65875d6c3b8499f37d7ca570b3463955306c (patch)
tree5fffb2cb847be3ba3354f4270006885c90da4e89
parentddb71b1aa833b9e6a4dce1ca9a5549c930871bfc (diff)
downloadnspr-hg-20da65875d6c3b8499f37d7ca570b3463955306c.tar.gz
#3616 - Enable long long in Mac version of NSPR (#defines the HAVE_LONG_LONG flag). sr=sfraser
-rw-r--r--pr/src/md/mac/mactime.c6
-rw-r--r--pr/src/md/mac/prcpucfg.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/pr/src/md/mac/mactime.c b/pr/src/md/mac/mactime.c
index f0c27258..ce053674 100644
--- a/pr/src/md/mac/mactime.c
+++ b/pr/src/md/mac/mactime.c
@@ -23,7 +23,7 @@
#include "mactime.h"
-PR_IMPLEMENT(UnsignedWide) dstLocalBaseMicroseconds;
+PR_IMPLEMENT(uint64) dstLocalBaseMicroseconds;
PR_IMPLEMENT(unsigned long) gJanuaryFirst1970Seconds;
/*
@@ -88,14 +88,14 @@ void MacintoshInitializeTime(void)
* time.
*/
{
- UnsignedWide upTime;
+ uint64 upTime;
unsigned long currentLocalTimeSeconds,
startupTimeSeconds;
uint64 startupTimeMicroSeconds;
uint32 upTimeSeconds;
uint64 oneMillion, upTimeSecondsLong, microSecondsToSeconds;
- Microseconds(&upTime);
+ Microseconds((UnsignedWide *)&upTime);
GetDateTime(&currentLocalTimeSeconds);
diff --git a/pr/src/md/mac/prcpucfg.h b/pr/src/md/mac/prcpucfg.h
index 9483f1f3..354ed6a4 100644
--- a/pr/src/md/mac/prcpucfg.h
+++ b/pr/src/md/mac/prcpucfg.h
@@ -26,6 +26,8 @@
#undef IS_LITTLE_ENDIAN
#define IS_BIG_ENDIAN 1
+#define HAVE_LONG_LONG
+
#define PR_AF_INET6 30 /* same as AF_INET6 */
#define PR_BYTES_PER_BYTE 1L