[gjs] xulrunner < 1.9.3 compat: Define INT_TO_JSID



commit 6a44bac07b622e16228ce277d4aeadb3609ded5b
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 30 12:47:21 2010 -0400

    xulrunner < 1.9.3 compat: Define INT_TO_JSID
    
    Taken from the xulrunner 1.9.2 headers.

 gjs/compat.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gjs/compat.h b/gjs/compat.h
index 1480ef8..1ff1c31 100644
--- a/gjs/compat.h
+++ b/gjs/compat.h
@@ -58,6 +58,7 @@ G_BEGIN_DECLS
  */
 #define JSID_VOID JSVAL_VOID
 #define JSID_IS_VOID(id) (id == JSVAL_VOID)
+#define INT_TO_JSID(i) ((jsid) INT_TO_JSVAL(i))
 
 #else
 #define HAVE_JSENUMERATE_INIT_ALL 1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]