ossp-pkg/js/src/jsapi.c 1.11 -> 1.12
--- jsapi.c 2006/07/31 17:36:41 1.11
+++ jsapi.c 2006/08/03 12:41:28 1.12
@@ -78,7 +78,7 @@
#include "jsstr.h"
#include "prmjtime.h"
-#if JS_HAS_FILE_OBJECT
+#if defined(JS_HAS_FILE_OBJECT) && (JS_HAS_FILE_OBJECT - 0) /* OSSP BUGFIX */
#include "jsfile.h"
#endif
@@ -1212,7 +1212,7 @@
js_InitXMLClasses(cx, obj) &&
#endif
#ifndef OSSP
-#if JS_HAS_FILE_OBJECT
+#if defined(JS_HAS_FILE_OBJECT) && (JS_HAS_FILE_OBJECT - 0) /* OSSP BUGFIX */
js_InitFileClass(cx, obj) &&
#endif
#endif
@@ -1255,7 +1255,7 @@
{js_InitNamespaceClass, ATOM_OFFSET(Namespace)},
{js_InitQNameClass, ATOM_OFFSET(QName)},
#endif
-#if JS_HAS_FILE_OBJECT
+#if defined(JS_HAS_FILE_OBJECT) && (JS_HAS_FILE_OBJECT - 0) /* OSSP BUGFIX */
{js_InitFileClass, ATOM_OFFSET(File)},
#endif
{NULL, 0}
|
|