summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/gobject/GOwnPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/gobject/GOwnPtr.h')
-rw-r--r--JavaScriptCore/wtf/gobject/GOwnPtr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/JavaScriptCore/wtf/gobject/GOwnPtr.h b/JavaScriptCore/wtf/gobject/GOwnPtr.h
index e04ee9d..cec3e43 100644
--- a/JavaScriptCore/wtf/gobject/GOwnPtr.h
+++ b/JavaScriptCore/wtf/gobject/GOwnPtr.h
@@ -22,6 +22,8 @@
#ifndef GOwnPtr_h
#define GOwnPtr_h
+#if ENABLE(GLIB_SUPPORT)
+
#include <algorithm>
#include <wtf/Assertions.h>
#include <wtf/Noncopyable.h>
@@ -135,4 +137,7 @@ template <typename T> inline void freeOwnedGPtr(T* ptr)
using WTF::GOwnPtr;
+#endif // ENABLE(GLIB_SUPPORT)
+
#endif // GOwnPtr_h
+