From 7357ba307c8a10da29ad7ea8cbbd6a338095a18a Mon Sep 17 00:00:00 2001 From: "shaver@mozilla.org" Date: Thu, 10 Jul 2008 09:52:34 -0400 Subject: [PATCH] use typedefs instead of stdint.h, because someone forgot to tell MSVC it was 2008 --- js/src/nanojit/avmplus.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/src/nanojit/avmplus.h b/js/src/nanojit/avmplus.h index 7b7a6723f06c..3e747d01fc77 100644 --- a/js/src/nanojit/avmplus.h +++ b/js/src/nanojit/avmplus.h @@ -57,7 +57,18 @@ #define AvmAssertMsg(x, y) #define AvmDebugLog(x) printf x -#include +#ifdef _MSC_VER +/* + * Can we just take a moment to think about what it means that MSVC doesn't have stdint.h in 2008? + * Thanks for your time. + */ +typedef JSWord intptr_t; +#endif +typedef JSUint8 uint8_t; +typedef JSUint16 uint16_t; +typedef JSUint32 uint32_t; +typedef JSUint64 uint64_t; + #if defined(__i386__)