diff --git a/libbase/utility.h b/libbase/utility.h
index 8b9f48c..51ea858 100644
--- a/libbase/utility.h
+++ b/libbase/utility.h
@@ -61,7 +61,7 @@ namespace std
 };
 #endif
 
-#if defined(__HAIKU__)
+#if defined(__HAIKU_OLD)
 namespace std {
 	class wstring : public std::basic_string<char>
 	{
