diff options
| author | Alexander Kornienko <alexfh@google.com> | 2013-08-07 01:23:28 +0000 | 
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2013-08-07 01:23:28 +0000 | 
| commit | 57dee15f9fbbacfc75dcd2ad76569297bf816c4f (patch) | |
| tree | 471340a0fdd99198b5b4d26d2135fc860b759090 /llvm/unittests/Support/LocaleTest.cpp | |
| parent | 7de8ea3d00f393e0847495d9cd6660204c10e75c (diff) | |
| download | bcm5719-llvm-57dee15f9fbbacfc75dcd2ad76569297bf816c4f.tar.gz bcm5719-llvm-57dee15f9fbbacfc75dcd2ad76569297bf816c4f.zip | |
Use correct platform detection macro: __MACOSX__ -> __APPLE__
llvm-svn: 187847
Diffstat (limited to 'llvm/unittests/Support/LocaleTest.cpp')
| -rw-r--r-- | llvm/unittests/Support/LocaleTest.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/llvm/unittests/Support/LocaleTest.cpp b/llvm/unittests/Support/LocaleTest.cpp index cb973f02b98..8d8ae78dfcb 100644 --- a/llvm/unittests/Support/LocaleTest.cpp +++ b/llvm/unittests/Support/LocaleTest.cpp @@ -40,7 +40,7 @@ TEST(Locale, columnWidth) {    // FIXME: MacOS implementation of columnWidth seems to not handle incorrect    // UTF-8 sequences. -#ifndef __MACOSX__ +#ifndef __APPLE__    // Invalid UTF-8 strings, columnWidth should error out.    EXPECT_EQ(-2, columnWidth("\344"));    EXPECT_EQ(-2, columnWidth("\344\270")); @@ -58,7 +58,7 @@ TEST(Locale, columnWidth) {    // characters.    EXPECT_EQ(-2, columnWidth("\370\200\200\200\200"));     // U+200000    EXPECT_EQ(-2, columnWidth("\374\200\200\200\200\200")); // U+4000000 -#endif // __MACOSX__ +#endif // __APPLE__  }  TEST(Locale, isPrint) { @@ -74,15 +74,15 @@ TEST(Locale, isPrint) {    EXPECT_EQ(true, isPrint(0xAC));    // FIXME: Figure out if we want to treat SOFT HYPHEN as printable character. -#ifndef __MACOSX__ +#ifndef __APPLE__    EXPECT_EQ(false, isPrint(0xAD)); // SOFT HYPHEN -#endif // __MACOSX__ +#endif // __APPLE__    EXPECT_EQ(true, isPrint(0xAE));    // MacOS implementation doesn't think it's printable. -#ifndef __MACOSX__ +#ifndef __APPLE__    EXPECT_EQ(true, isPrint(0x0377)); // GREEK SMALL LETTER PAMPHYLIAN DIGAMMA -#endif // __MACOSX__ +#endif // __APPLE__    EXPECT_EQ(false, isPrint(0x0378)); // <reserved-0378>..<reserved-0379>    EXPECT_EQ(false, isPrint(0x0600)); // ARABIC NUMBER SIGN | 

