diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-12-26 15:13:43 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-12-26 15:13:43 -0800 |
commit | ba67c03eba3759bf03d87a28d64ddf9f1e267216 (patch) | |
tree | d9d0591067a8fcfd3c1b41b4d588a5b9b95f8a7f | |
parent | e0c9302e9af415a413f3e198731325e4dafd2c9e (diff) |
[ios] Fixed build
typeof is only available on macOS; use __typeof__ instead.
-rw-r--r-- | platform/darwin/test/MGLPredicateTests.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/test/MGLPredicateTests.mm b/platform/darwin/test/MGLPredicateTests.mm index 63186ee3b..07466dfd1 100644 --- a/platform/darwin/test/MGLPredicateTests.mm +++ b/platform/darwin/test/MGLPredicateTests.mm @@ -13,9 +13,9 @@ namespace mbgl { } #define MGLAssertEqualFilters(actual, expected, ...) \ - XCTAssertTrue(actual.is<typeof expected>()); \ - if (actual.is<typeof expected>()) { \ - XCTAssertEqual(actual.get<typeof expected>(), expected, __VA_ARGS__); \ + XCTAssertTrue(actual.is<__typeof__(expected)>()); \ + if (actual.is<__typeof__(expected)>()) { \ + XCTAssertEqual(actual.get<__typeof__(expected)>(), expected, __VA_ARGS__); \ } @interface MGLPredicateTests : XCTestCase |