Index: base/third_party/nspr/prtime.h |
diff --git a/base/third_party/nspr/prtime.h b/base/third_party/nspr/prtime.h |
index 01a4e540782ba2157a295639dbd45aece5c3a6f0..20bae38828f2d7a9ea20e95f54eb01b9dca4273b 100644 |
--- a/base/third_party/nspr/prtime.h |
+++ b/base/third_party/nspr/prtime.h |
@@ -73,6 +73,17 @@ typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus; |
#define PR_INT16_MAX 32767 |
#define NSPR_API(__type) extern __type |
+/* |
+ * Long-long (64-bit signed integer type) support macros used by |
+ * PR_ImplodeTime(). |
+ * See http://lxr.mozilla.org/nspr/source/pr/include/prlong.h |
+ */ |
+ |
+#define LL_I2L(l, i) ((l) = (PRInt64)(i)) |
+#define LL_MUL(r, a, b) ((r) = (a) * (b)) |
+#define LL_ADD(r, a, b) ((r) = (a) + (b)) |
+#define LL_SUB(r, a, b) ((r) = (a) - (b)) |
+ |
/**********************************************************************/ |
/************************* TYPES AND CONSTANTS ************************/ |
/**********************************************************************/ |