Skip to content

Commit

Permalink
WTF: compile without collation
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed Nov 5, 2013
1 parent 17c4e89 commit 5f68a80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions WTF/WTF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1927,6 +1927,7 @@
"$(GCC_PREPROCESSOR_DEFINITIONS)",
TARGET_OS_IPHONE,
"__MAC_OS_X_VERSION_MIN_REQUIRED=0",
"UCONFIG_NO_COLLATION=1",
);
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
PRODUCT_NAME = "WTF iOS";
Expand All @@ -1949,6 +1950,7 @@
"$(GCC_PREPROCESSOR_DEFINITIONS)",
TARGET_OS_IPHONE,
"__MAC_OS_X_VERSION_MIN_REQUIRED=0",
"UCONFIG_NO_COLLATION=1",
);
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
PRODUCT_NAME = "WTF iOS";
Expand All @@ -1971,6 +1973,7 @@
"$(GCC_PREPROCESSOR_DEFINITIONS)",
TARGET_OS_IPHONE,
"__MAC_OS_X_VERSION_MIN_REQUIRED=0",
"UCONFIG_NO_COLLATION=1",
);
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
PRODUCT_NAME = "WTF iOS";
Expand Down
3 changes: 3 additions & 0 deletions WTF/wtf/unicode/Collator.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ namespace WTF {
void releaseCollator();
mutable UCollator* m_collator;
#endif

#if !UCONFIG_NO_COLLATION
char* m_locale;
bool m_lowerFirst;
#endif
};
}

Expand Down
3 changes: 2 additions & 1 deletion WTF/wtf/unicode/CollatorDefault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ void Collator::setOrderLowerFirst(bool)
{
}

OwnPtr<Collator> Collator::userDefault()
//OwnPtr<Collator> Collator::userDefault() HACK
std::unique_ptr<Collator> Collator::userDefault()
{
return std::make_unique<Collator>(nullptr);
}
Expand Down

0 comments on commit 5f68a80

Please sign in to comment.