]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/localsvc.cpp
ICU-57131.0.1.tar.gz
[apple/icu.git] / icuSources / common / localsvc.cpp
index cb0cf6ca857bbec975d42a454f7bea95cec2de2f..a6093196bfc971844acc1ce8d3d2f1b468d69814 100644 (file)
@@ -9,15 +9,13 @@
 
 #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
+#if U_PLATFORM_IS_DARWIN_BASED && TARGET_OS_MAC
                return new AppleLanguageBreakFactory(*status);
        }
 #else