Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 2842c328dc53c6aef0f167dd58b18bee9a84f4bb..35b428a2da1f7b661c04a172783abe143cfd08ff 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -425,8 +425,10 @@ class EXPORT HandleScope { |
// scopes by disallowing certain operations. |
HandleScope(const HandleScope&); |
void operator=(const HandleScope&); |
+#ifndef BUILDING_V8C // C bindings need to be able to heap-allocate. |
void* operator new(size_t size); |
void operator delete(void*, size_t); |
+#endif |
class EXPORT Data { |
public: |