]> granicus.if.org Git - icu/commitdiff
ICU-8452 fix a couple of Darwin/iPhone platform tests
authorMarkus Scherer <markus.icu@gmail.com>
Mon, 25 Jul 2011 18:42:17 +0000 (18:42 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Mon, 25 Jul 2011 18:42:17 +0000 (18:42 +0000)
X-SVN-Rev: 30416

icu4c/source/common/unicode/platform.h
icu4c/source/test/cintltst/cmsgtst.c

index c8f4221fdf30e9721cad1ccbca94a5dfca8e8453..99e9da88ea298bc36c270427a8015c04dd13a1c2 100644 (file)
 #   define U_PLATFORM U_PF_IRIX
 #elif defined(__APPLE__) && defined(__MACH__)
 #   include <TargetConditionals.h>
-#   ifdef TARGET_OS_IPHONE  /* variant of TARGET_OS_MAC */
+#   if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE  /* variant of TARGET_OS_MAC */
 #       define U_PLATFORM U_PF_IPHONE
 #   else
 #       define U_PLATFORM U_PF_DARWIN
index b5ebf4e48dd04efeada287ec47a9e4c9400ff064..b163b0b299496d06e78335cb20eb775e3381b40e 100644 (file)
@@ -219,7 +219,7 @@ static void MessageFormatTest( void )
                         austrdup(result), austrdup(testResultStrings[i]) );
                 }
 
-#if U_PLATFORM == U_PF_DARWIN  /* add platforms here .. */
+#if U_PLATFORM_IS_DARWIN_BASED  /* add platforms here .. */
                 log_verbose("Skipping potentially crashing test for mismatched varargs.\n");
 #else
                 log_verbose("Note: the next is a platform dependent test. If it crashes, add an exclusion for your platform near %s:%d\n", __FILE__, __LINE__);