]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/localsvc.cpp
ICU-62108.0.1.tar.gz
[apple/icu.git] / icuSources / common / localsvc.cpp
index cb0cf6ca857bbec975d42a454f7bea95cec2de2f..ad8c8651ef4c86b1e48d51315e25f209de163f6a 100644 (file)
@@ -9,16 +9,14 @@
 
 #include "aaplbfct.h"
 #include "cstring.h"
-#if defined(U_DARWIN)
-#include <TargetConditionals.h>
-#endif
+// platform.h now includes <TargetConditionals.h> if U_PLATFORM_IS_DARWIN_BASED
 
 // Return an appropriate Apple-specific object, based on the service in question
 U_CAPI void* uprv_svc_hook(const char *what, UErrorCode *status)
 {
        if (uprv_strcmp(what, "languageBreakFactory") == 0) {
-#if defined(U_DARWIN) && TARGET_OS_MAC
-               return new AppleLanguageBreakFactory(*status);
+#if U_PLATFORM_IS_DARWIN_BASED && TARGET_OS_MAC
+               return new icu::AppleLanguageBreakFactory(*status);
        }
 #else
        }