diff --git a/src/ecmascript/quickjs/attributes.cpp b/src/ecmascript/quickjs/attributes.cpp index 2b4fa1ce..a729a309 100644 --- a/src/ecmascript/quickjs/attributes.cpp +++ b/src/ecmascript/quickjs/attributes.cpp @@ -53,6 +53,7 @@ #include #include +#ifndef CONFIG_LIBDOM #define countof(x) (sizeof(x) / sizeof((x)[0])) static std::map map_attributes; @@ -315,3 +316,4 @@ getAttributes(JSContext *ctx, void *node) RETURN_JS(rr); } +#endif