Wx build fix.
[WebKit-https.git] / JavaScriptCore / wtf / unicode / icu / CollatorICU.cpp
index 59d9ddba9b537a816e6d4854530dc5389b94ffe3..8fec11da2f3301654f85954b510e87b91dd8efdd 100644 (file)
@@ -57,7 +57,7 @@ Collator::Collator(const char* locale)
 
 std::auto_ptr<Collator> Collator::userDefault()
 {
-#if PLATFORM(DARWIN)
+#if PLATFORM(DARWIN) && PLATFORM(CF)
     // Mac OS X doesn't set UNIX locale to match user-selected one, so ICU default doesn't work.
     CFStringRef collationOrder = (CFStringRef)CFPreferencesCopyValue(CFSTR("AppleCollationOrder"), kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
     char buf[256];